Permalink
Browse files

mkcert

  • Loading branch information...
1 parent 229c5b6 commit 6144b4fe2d6f66a0f7be0ba7931f7ff5eda554be @klacke committed Oct 18, 2009
Showing with 9 additions and 0 deletions.
  1. +3 −0 ssl/mkcert/README
  2. +6 −0 ssl/mkcert/mkcert.sh
View
@@ -0,0 +1,3 @@
+
+Small script to generate a selfsigned cert. To make it a wildcard
+cert, just enter *.mydomain.com for the common name
@@ -0,0 +1,6 @@
+#!/bin/sh
+umask 077 && touch host.key host.cert host.info host.pem
+openssl genrsa 2048 > host.key
+openssl req -new -x509 -nodes -sha1 -days 3650 -key host.key > host.cert
+openssl x509 -noout -fingerprint -text < host.cert > host.info
+cat host.cert host.key > host.pem

0 comments on commit 6144b4f

Please sign in to comment.