Generate key and certificate for SSL server and client

View: New views
2 Messages — Rating Filter:   Alert me  

Generate key and certificate for SSL server and client

by hce :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I have a set of RSA string keys (N, E, D, Q, P, DP, DQ and QP). Can I
generate a key, ceritificate and CA certificate based on those RSA
string keys (N, E, D, Q, P, DP, DQ and QP) for SSL server and SSL
client? If so, could you give an example how can I call openssl to do
it?

Thank you.

Kind Regards,

Jupiter
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@...
Automated List Manager                           majordomo@...

Re: Generate key and certificate for SSL server and client

by Dr. Stephen Henson :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Fri, Jul 03, 2009, hce wrote:

> Hi,
>
> I have a set of RSA string keys (N, E, D, Q, P, DP, DQ and QP). Can I
> generate a key, ceritificate and CA certificate based on those RSA
> string keys (N, E, D, Q, P, DP, DQ and QP) for SSL server and SSL
> client? If so, could you give an example how can I call openssl to do
> it?
>

First you need a private key file. There is an example in the
AN1_generate_nconf manual page which you can use as a template to feed into
the asn1parse utility which will output the result in DER format.

Once you have that in DER format you can convert the key to PEM and from then
on generate whatever you want with it.

Steve.
--
Dr Stephen N. Henson. OpenSSL project core developer.
Commercial tech support now available see: http://www.openssl.org
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@...
Automated List Manager                           majordomo@...