Overview
Features
Download
Documentation
Community
Add-Ons & Services

How to create any.pem and rootcert.pem

Please post support and help requests here.

How to create any.pem and rootcert.pem

Postby Oliver » 18 Feb 2008, 03:46

Hi,

In NetSSL_OpenSSLsamplesdownload directory, there are two pem files: any.pem and rootcert.pem. Please advise how to create them by openssl and what is the password when we run this sample code?

Thanks.
Oliver
Oliver
 
Posts: 3
Joined: 15 Feb 2008, 23:42

Re: How to create any.pem and rootcert.pem

Postby peter » 19 Feb 2008, 08:17

> Hi,
>
> In NetSSL_OpenSSLsamplesdownload directory, there are two pem files: any.pem and rootcert.pem. Please advise how to create them by openssl and what is the password when we run this sample code?

The password is test.

Pem files were created with openssl, I found a tutorial for that in the net but can't remember the URL. Shouldn't be a problem to find with google, though.

br

Peter

>
> Thanks.
> Oliver
peter
 
Posts: 67
Joined: 11 Jul 2006, 16:26
Location: Austria

Re: Re: How to create any.pem and rootcert.pem

Postby Oliver » 21 Feb 2008, 00:15

Thanks a lot.
Oliver
Oliver
 
Posts: 3
Joined: 15 Feb 2008, 23:42

Re: How to create any.pem and rootcert.pem

Postby rekkai » 02 Mar 2008, 20:31

It took me a bit of experimentation to figure this out.
On the off chance this helps someone else in the future.

Follow the instructions at
http://www.debianhelp.co.uk/selfcert.htm

There are some key differences

1) do not specify -nodes in any of the commandline options. You want to create a private key for your server. POCO openSSL wrapper code requires it to be available.

2) Use "hash=" to be sha1 instead of md5 in the openssl.cnf file

3) After you are done, do "cat cert.pem key.pem cacert.pem > key-cert.pem"

4) Rename the cacert.pem as rootcert.pem and key-cert.pem as any.pem


rekkai
 
Posts: 11
Joined: 02 Aug 2007, 05:53
Location: United_States


Return to Support

Who is online

Users browsing this forum: No registered users and 1 guest

cron