fixed certificate name verification