Commit 581f54c2 authored by Xueshan Feng's avatar Xueshan Feng
Browse files

remved -rand option. It's unknow with newer openssl.

parent 50fe937c
...@@ -44,7 +44,7 @@ fi ...@@ -44,7 +44,7 @@ fi
echo "creating the $subdomain.key and $subdomain.csr...." echo "creating the $subdomain.key and $subdomain.csr...."
cat site.cnf.tmpl | sed "s/FQDN/$subdomain.$domain/;s/OU/$ou/;s/EMAIL/$email/" > $subdomain.cnf cat site.cnf.tmpl | sed "s/FQDN/$subdomain.$domain/;s/OU/$ou/;s/EMAIL/$email/" > $subdomain.cnf
openssl req -new -config $subdomain.cnf -rand /dev/urandom -nodes -keyout $subdomain.$domain.key -out $subdomain.$domain.csr openssl req -new -config $subdomain.cnf -nodes -keyout $subdomain.$domain.key -out $subdomain.$domain.csr
echo "$subdomain.csr is generated:" echo "$subdomain.csr is generated:"
openssl req -text -noout -in $subdomain.$domain.csr openssl req -text -noout -in $subdomain.$domain.csr
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment