- create a key and request:
openssl req -new > foo-cert.csr
As "Common Name" you have to type in the name part of
your URL, i.e. if your web site will be
"https://www.libwebserver.rules:443/" the Common Name is
"www.libwebserver.rules".
- remove the passphrase from the key:
openssl rsa -in privkey.pem -out foo-cert.key
- convert request into a signed certificate:
openssl x509 -in foo-cert.csr -out foo-cert.cert -req -signkey foo-cert.key -days 356
- create .pem file:
cat foo-cert.cert foo-cert.key >foo-cert.pem