Commit 1cb8faa1 authored by Xueshan Feng's avatar Xueshan Feng
Browse files

name site.cnf to specific site name.

parent ee6793cc
Pipeline #23 skipped
......@@ -42,7 +42,7 @@ if [[ ! $subdomain|| ! $ou || ! $email || ! $domain ]]; then
echo "creating the $subdomain.key and $subdomain.csr...."
cat site.cnf.tmpl | sed "s/FQDN/$subdomain.$domain/;s/OU/$ou/;s/EMAIL/$email/" > site.cnf
cat site.cnf.tmpl | sed "s/FQDN/$subdomain.$domain/;s/OU/$ou/;s/EMAIL/$email/" > $subdomain.cnf
openssl req -new -config site.cnf -rand /dev/urandom -nodes -keyout $subdomain.$domain.key -out $subdomain.$domain.csr
echo "$subdomain.csr is generated:"
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