dambalah (owner)

Revisions

gist: 157629 Download_button fork
public
Description:
Used to create a self-signed certificate
Public Clone URL: git://gist.github.com/157629.git
Embed All Files: show embed
make-cert.sh #
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh
 
NAME=$1
 
if [ "$NAME" == '' ]
then
echo "$0 <certificate name>" 1>&2
  exit 1
fi
openssl genrsa 1024 | openssl pkcs8 -topk8 -nocrypt -out $NAME.key
openssl req -new -x509 -nodes -sha1 -days 365 -key $NAME.key -out $NAME.cert