Tuesday, February 13, 2007

Generate SSL certificate

1. Create the private key
openssl genrsa 1024 > host.key

2. Create the certificate
openssl req -new -x509 -nodes -days 365 -key host.key > host.cert

3. Create .pem file
Some applications require the private key and certificate in a single
.pem file. then..
cat host.cert host.key > host.pem

0 Comments:

Post a Comment

<< Home