Fixed certificate name check