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
54270fda
Commit
54270fda
authored
Jul 11, 2016
by
Raymond Kristiansen
Browse files
more
parent
47a4201c
Changes
3
Hide whitespace changes
Inline
Side-by-side
cnf/dashboard.local1.intern.cnf
0 → 100644
View file @
54270fda
[ req ]
default_bits = 2048
prompt = no
encrypt_key = no
default_md = sha256
distinguished_name = dn
utf8 = yes
req_extensions = v3_req
[ v3_req ]
subjectAltName = @alt_names
[ dn ]
C = NO
O = UH-IaaS
CN = dashboard.local1.intern
[alt_names]
DNS.1 = api.local1.intern
cnf/example.cnf
0 → 100644
View file @
54270fda
[ req ]
default_bits = 2048
prompt = no
encrypt_key = no
default_md = sha256
distinguished_name = dn
utf8 = yes
req_extensions = v3_req
[ v3_req ]
subjectAltName = @alt_names
[ dn ]
C = NO
O = Universitetet_i_Bergen
CN = servernavn.uib.no
[alt_names]
DNS.1 = altnavn1.uib.no
DNS.2 = altnavn2.uib.no
gen_server_cert.sh
0 → 100755
View file @
54270fda
#/bin/bash
host
=
$1
cnf
=
"cnf/
${
host
}
.cnf"
if
[
-f
"cnf/
${
host
}
.cnf"
]
;
then
cnf
=
"cnf/
${
host
}
.cnf"
else
cnf
=
"intermediate/openssl.cnf"
fi
echo
"Using
${
cnf
}
as config file"
openssl genrsa
-out
intermediate/private/
${
host
}
.key.pem 2048
openssl req
-config
${
cnf
}
-key
intermediate/private/
${
host
}
.key.pem
-new
-sha256
-out
intermediate/csr/
${
host
}
.csr.pem
openssl ca
-config
intermediate/openssl.cnf
-extensions
v3_req
\
-days
375
-notext
-md
sha256
-in
intermediate/csr/
${
host
}
.csr.pem
\
-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