unable to get public key from certificate file