Switched behavior to non case sensitive check of attributes of certifica...

Switched behavior to non case sensitive check of attributes of certificates to find the correct key file