Switch branches/tags
Nothing to show
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
README.md
fooserver-ssl.crt.pem
fooserver-ssl.csr
fooserver-ssl.key.orig.pem
fooserver-ssl.key.pem

README.md

How to create a self-assigned ssl key / certificate pair

openssl genrsa -des3 \
  -out fooserver-ssl.key.orig.pem 2048 # or 1024

openssl req \
  -subj '/C=US/ST=Utah/L=Provo/CN=www.example.com' \
  -new -key fooserver-ssl.key.orig.pem \
  -out fooserver-ssl.csr

openssl rsa \
  -in fooserver-ssl.key.orig.pem \
  -out fooserver-ssl.key.pem

openssl x509 -req \
  -days 365 \
  -in fooserver-ssl.csr \
  -signkey fooserver-ssl.key.pem \
  -out fooserver-ssl.crt.pem

Resources: