Skip to content

Commit

Permalink
Merge pull request sovereign#126 from yuvadm/self-signed-ssl
Browse files Browse the repository at this point in the history
Add self-signed SSL cert section to README
  • Loading branch information
al3x committed Jan 12, 2014
2 parents 2a0d379 + 70f2a44 commit b4f6ecb
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.textile
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,16 @@ Lastly, test your certificates using the @security@ program on Mac OS X:
bc. security verify-cert -L -p ssl -s example.com -c roles/common/files/wildcard_public_cert.crt -c roles/common/files/wildcard_ca.pem
...certificate verification successful.

h4. Self-signed SSL certificate

Purchasing SSL certs, and wildcard certs specifically, can be a significant financial burden. It is possible to generate a self-signed SSL certificate (i.e. one that isn't signed by a Certificate Authority) that is free of charge by nature. However, since a self-signed cert has no CA chain that can confirm its authenticity, some services might behave erratically when using such a certificate.

To create a self-signed SSL cert, run the following commands:

bc. openssl req -nodes -newkey rsa:2048 -keyout roles/common/files/wildcard_private.key -out mycert.csr
openssl x509 -req -days 365 -in mycert.csr -signkey roles/common/files/wildcard_private.key -out roles/common/files/wildcard_public_cert.crt
cp roles/common/files/wildcard_public_cert.crt roles/common/files/wildcard_ca.pem

h3. 2. Get a Tarsnap machine key

If you haven't already, "download and install Tarsnap":https://www.tarsnap.com/download.html, or use @brew install tarsnap@ if you use "Homebrew":http://brew.sh.
Expand Down

0 comments on commit b4f6ecb

Please sign in to comment.