-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathopenssl.conf
81 lines (64 loc) · 1.86 KB
/
openssl.conf
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
[ ca ]
default_ca = fake_ca
days = 3650
[ fake_ca ]
dir = .
certificate = $dir/ca.crt
database = $dir/index.txt
new_certs_dir = $dir/certs
private_key = $dir/ca.key
x509_extensions = certificate_extensions
default_days = 365
default_md = sha256
serial = serial
policy = fake_ca_policy
unique_subject = no
email_in_dn = no
copy_extensions = copy
[ fake_ca_policy ]
commonName = supplied
emailAddress = optional
stateOrProvinceName = optional
localityName = optional
organizationName = optional
organizationalUnitName = optional
[ certificate_extensions ]
basicConstraints = CA:FALSE
keyUsage = digitalSignature, nonRepudiation, keyEncipherment, dataEncipherment
[ req ]
default_bits = 2048
default_keyfile = ca.key
default_md = sha256
prompt = yes
string_mask = utf8only
x509_extensions = root_ca_extensions
distinguished_name = root_ca_distinguished_name
[ root_ca_distinguished_name ]
countryName = DE
countryName_default = DE
organizationName = Fake AG
organizationalUnitName = Fake IT
commonName = hostname
emailAddress = ca@fakeca.local
[ root_ca_extensions ]
subjectKeyIdentifier = hash
authorityKeyIdentifier = keyid:hash, issuer
basicConstraints = critical, CA:true
keyUsage = keyCertSign, cRLSign
[ client_ca_extensions ]
basicConstraints = CA:FALSE
nsCertType = client
keyUsage = digitalSignature
extendedKeyUsage = clientAuth
[ server_ca_extensions ]
basicConstraints = CA:FALSE
nsCertType = server
keyUsage = digitalSignature, keyEncipherment
extendedKeyUsage = serverAuth
subjectKeyIdentifier = hash
authorityKeyIdentifier = keyid,issuer
[ commented_out ]
extendedKeyUsage = serverAuth, 1.3.6.1.5.5.7.3.1
extendedKeyUsage = clientAuth, 1.3.6.1.5.5.7.3.2
[ server_altname_extensions ]
subjectAltName=DNS:host.fakeca.local,DNS:host