openssl genrsa -out $1.key 1024 openssl req -new -key $1.key -out $1.csr openssl x509 -req -days 3650 -in $1.csr -signkey $1.key -out $1.crt