I'm having an issue generating a public key that the openssl
PEM_read_bio_RSA_PUBKEY() function can consume. I keep getting errors.
Obviously I cannot simply use the ASCII string in the
ssh-keygen <>.pub key file as it is in SSH file format or I perhaps
Here's the key gen code:
ssh-keygen -t rsa -b 1024 -C "Test Key"
I found a converter in php on the web which will convert the contents of the public key into a base64 PEM ASCII string format. However the function still doesn't like it.
The Openssl documentation states:
- “RSA_PUBKEY() function which process a public key using an EVP_PKEY structure”
- “RSA_PUBKEY functions also process an RSA public key using an RSA structure”
How do I get my OpenSSH public key into either format that the OpenSSL function will consume it?