-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcert.cnf
More file actions
28 lines (24 loc) · 698 Bytes
/
cert.cnf
File metadata and controls
28 lines (24 loc) · 698 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# openssl req -new -nodes -newkey rsa:2048 -keyout server-key.pem -out server-csr.pem -config cert.cnf
# openssl x509 -req -days 365 -in server-csr.pem -signkey server-key.pem -out server-cert.pem -extensions v3_req -extfile cert.cnf
# openssl x509 -in server-cert.pem -text -noout
[req]
default_bits = 2048
prompt = no
default_md = sha256
distinguished_name = dn
req_extensions = v3_req
[dn]
C = Country
ST = State
L = Locality
O = Company
OU = Unit
CN = site.common.name.com
[v3_req]
basicConstraints = CA:FALSE
keyUsage = nonRepudiation, digitalSignature, keyEncipherment
subjectAltName = @alt_names
[alt_names]
DNS.2 = site.alt.name.biz
DNS.3 = site.alt.name.io
DNS.4 = site.alt.name.net