Fix Bug#10083

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