Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Raymond Kristiansen
ca_setup
Commits
4bbedd48
Commit
4bbedd48
authored
Aug 09, 2016
by
Raymond Kristiansen
Browse files
Use passfile to generate server cert
parent
8465f797
Changes
1
Hide whitespace changes
Inline
Side-by-side
gen_server_cert.sh
View file @
4bbedd48
#/bin/bash
if
[
!
-f
"./passfile"
]
;
then
echo
"Please create a file called ./passfile with a secure password"
exit
1
fi
host
=
$1
cnf
=
"cnf/
${
host
}
.cnf"
...
...
@@ -18,4 +23,5 @@ openssl req -config ${cnf} -key intermediate/private/${host}.key.pem -new -sha25
openssl ca
-config
intermediate/openssl.cnf
-extensions
v3_req
\
-days
375
-notext
-md
sha256
-in
intermediate/csr/
${
host
}
.csr.pem
\
-passin
file:passfile
\
-out
intermediate/certs/
${
host
}
.cert.pem
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment