fixed typos in open ssl keys validation method