Skip to content
Newer
Older
100755 12 lines (9 sloc) 311 Bytes
a318c0d @danopia Added a shell script to generate certs and a few changes around the p…
authored Oct 24, 2009
1 #!/bin/bash
2
3 NAME=$1
4
5 if [ "$NAME" == '' ]
6 then
7 echo "$0 <certificate name>" 1>&2
8 exit 1
9 fi
10 openssl genrsa 1024 | openssl pkcs8 -topk8 -nocrypt -out $NAME.key
11 openssl req -new -x509 -nodes -sha1 -days 365 -key $NAME.key -out $NAME.cert
Something went wrong with that request. Please try again.