Is there a way to generate keys on a server running openssl 1.0 that can be read by a client using openssl 0.9 ?
- Client is using php_openssl (OpenSSL Library Version => OpenSSL 0.9.8o)
Server is using php_openssl (OpenSSL Library Version => OpenSSL 1.0.1e 11 Feb 2013)
generated keys with openssl 1.0 are in form '-----BEGIN PRIVATE KEY-----` with algo in the body (I guess)
- generated keys with openssl 0.9 are in form
-----BEGIN RSA PRIVATE KEY-----
My scripts strip the ASCII armor on the server, and put it back on the client, so I write 0.9 armor ( RSA ) on 1.0 keys, witch result in an invalid key.
Is there an option to generate 0.9 formatted keys (with key type in the armor, not in the body) on openssl 1.0?
As stated on https://superuser.com/questions/606215/openssl-pkcs8-default-format-gives-rsa-private-key , you can "convert" openssl 1.0 generated keys into a 0.98 compatible one using