Fixed certificate name check
Merge pull request #2 from wagnerand/master

Fixed certificate name check, r=bsmith