Fixing key property of public key info to work for secret keys