Hello, > I am trying to replace a legacy system with openssl. The legacy system > used RSA keys but stored them in its own format. I can extract the RSA > components but I'm not sure how to generate a PEM formatted RSA key. > What is the easiest way to do this? Can the command line tools do it, or > do I need to use the API? If you have RSA private key components you may use OpenSSL API (RSA/BIGNUM) or you may convert this to ASN1 private key structure (DER format) and next to PEM format. You may use "openssl asn1parse" to display or convert. Some time ago I sent small perl script to do something like that. (conersion from BIND to DER fromat). Hope this helps.
Best regards, -- Marek Marcola <[EMAIL PROTECTED]>
asn1conv.pl
Description: Perl program