Creating certificates with openssl

Tue 21 October 2014
By alex

Self Signed Cert

Create a single .pem file containing both the private (key) and public (cert) keys.

openssl req -x509 -nodes -days 730 -newkey rsa:2048 -keyout site.pem -out site.pem

CSR

Create an certificate signing request

openssl req -new -newkey rsa:2048 -nodes -keyout site.key -out site.csr