Sorry the commands would be to output as text of a certificate: openssl x509 -in cert.pem -out text.pem -text Then push the DN into a hash Make a temp config.cfg file Create a request using the config file openssl req -config config.cfg -new -keyout request.pem -out request.pem Then sign the request ----- Original Message ----- From: "Eytan Segal" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, April 10, 2001 12:58 AM Subject: Generating a cert request based on another certificate > Hi, > > I want to write code that, given an x509 certificate, will generate a > certificate request with the exact same details (common name, organization, > serial number, validity etc.), only using my public key instead of the > original one. > > How can I do this? > > Thanks, > Eytan Segal > > > ______________________________________________________________________ > OpenSSL Project http://www.openssl.org > User Support Mailing List [EMAIL PROTECTED] > Automated List Manager [EMAIL PROTECTED] ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]
