From f3c37a37eb1d199036242be4ab9175d8b3828775 Mon Sep 17 00:00:00 2001 From: Chris Lane Date: Mon, 19 Aug 2013 21:31:34 -0400 Subject: [PATCH] Added an openssl cheatsheet. --- cheatsheets/openssl | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 cheatsheets/openssl diff --git a/cheatsheets/openssl b/cheatsheets/openssl new file mode 100644 index 0000000..9c47806 --- /dev/null +++ b/cheatsheets/openssl @@ -0,0 +1,10 @@ +To create a 2048-bit private key: +openssl genrsa -out server.key 2048 + +To create the Certificate Signing Request (CSR): +openssl req -new -key server.key -out server.csr + +To sign a certificate using a private key and CSR: +openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt + +(The above commands may be run in sequence to generate a self-signed SSL certificate.)