Maintenance: GitLab GKE platform upgrade and software upgrade on Friday Oct. 22 at 9 p.m. Service may not be available between 9 p.m. and 9:20 p.m.

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 ...@@ -42,7 +42,7 @@ if [[ ! $subdomain|| ! $ou || ! $email || ! $domain ]]; then
fi 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/" > 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 openssl req -new -config site.cnf -rand /dev/urandom -nodes -keyout $subdomain.$domain.key -out $subdomain.$domain.csr
echo "$subdomain.csr is generated:" echo "$subdomain.csr is generated:"
......
Markdown is supported
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