Hello Eytan,

I would go about this problem something like this:
Output the certificate as text using this
openssl req -in cert.pem -out text.pem -text
push the DN line into an array
then write a temp config file using the array, generate a request using the
config file and then sign the request.

You could do the whole process automatically by using using certificate
authentication on a website. This link does half of what you are after:
https://www.ultrasecure.com/Admin/Admin.cgi

Oliver


----- 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]

Reply via email to