Tweeted twitter.com/#!/StackUnix/status/147819351486107648
2 formatting; English
source | link

I'm having an issue generating a public key that the openssl PEM_read_bio_RSA_PUBKEY()PEM_read_bio_RSA_PUBKEY() function can consume. I keep getting errors.

Obviously I cannot simply use the ASCII string in the ssh-keygen <>.pubssh-keygen <>.pub key file as it is in SSH file format or I perhaps SubjectPublicKeyInfoSubjectPublicKeyInfo structure.

Here's the key gen code: # ssh-keygen -t rsa -b 1024 -C "Test Key"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.

opensslThe Openssl documentation states: 1) "RSA_PUBKEY() function which process a public key using an EVP_PKEY structure" 2) " RSA_PUBKEY functions also process an RSA public key using an RSA structure,

  1. “RSA_PUBKEY() function which process a public key using an EVP_PKEY structure”
  2. “RSA_PUBKEY functions also process an RSA public key using an RSA structure”

Q: How do I get my OpenSSH public key into either format that the OpenSSL function will consume it? whew... my head is starting to hurt.

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 SubjectPublicKeyInfo structure.

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.

openssl documentation states: 1) "RSA_PUBKEY() function which process a public key using an EVP_PKEY structure" 2) " RSA_PUBKEY functions also process an RSA public key using an RSA structure,

Q: How do I get my OpenSSH public key into either format that the OpenSSL function will consume it? whew... my head is starting to hurt.

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 SubjectPublicKeyInfo structure.

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:

  1. “RSA_PUBKEY() function which process a public key using an EVP_PKEY structure”
  2. “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?

1
source | link

How do I convert a ssh-keygen public key into a format that openssl PEM_read_bio_RSA_PUBKEY() function will consume?

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 SubjectPublicKeyInfo structure.

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.

openssl documentation states: 1) "RSA_PUBKEY() function which process a public key using an EVP_PKEY structure" 2) " RSA_PUBKEY functions also process an RSA public key using an RSA structure,

Q: How do I get my OpenSSH public key into either format that the OpenSSL function will consume it? whew... my head is starting to hurt.