-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCA.cnf.inst
More file actions
193 lines (175 loc) · 5.44 KB
/
CA.cnf.inst
File metadata and controls
193 lines (175 loc) · 5.44 KB
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
[ ca ]
default_ca = ca_ca
[ client_ca ]
dir = .
certs = $dir/user
crl_dir = $dir/crl
database = $dir/index.txt
new_certs_dir = $dir/user/newcerts
certificate = $dir/ca/ca-crt.pem
serial = $dir/serial
crl = $dir/crl/crl.pem
private_key = $dir/ca/ca-key.pem
RANDFILE = $dir/.rand
x509_extensions = client_cert
default_days = 366
default_crl_days= 30
default_md = sha1
preserve = no
policy = policy_client
[ server_ca ]
dir = .
certs = $dir/server
crl_dir = $dir/crl
database = $dir/index.txt
new_certs_dir = $dir/server/newcerts
certificate = $dir/ca/ca-crt.pem
serial = $dir/serial
crl = $dir/crl/crl.pem
private_key = $dir/ca/ca-key.pem
RANDFILE = $dir/.rand
x509_extensions = server_cert
default_days = 366
default_crl_days= 30
default_md = sha1
preserve = no
policy = policy_server
[ workstation_ca ]
dir = .
certs = $dir/workstation
crl_dir = $dir/crl
database = $dir/index.txt
new_certs_dir = $dir/workstation/newcerts
certificate = $dir/ca/ca-crt.pem
serial = $dir/serial
crl = $dir/crl/crl.pem
private_key = $dir/ca/ca-key.pem
RANDFILE = $dir/.rand
x509_extensions = workstation_cert
default_days = 366
default_crl_days= 30
default_md = sha1
preserve = no
policy = policy_workstation
[ ca_ca ]
dir = .
certs = $dir/ca
crl_dir = $dir/crl
database = $dir/index.txt
new_certs_dir = $dir/ca/newcerts
certificate = $dir/ca/ca-crt.pem
serial = $dir/serial
crl = $dir/crl/crl.pem
private_key = $dir/ca/ca-key.pem
RANDFILE = $dir/.rand
x509_extensions = v3_ca
default_days = 3650
default_crl_days= 30
default_md = sha1
preserve = no
policy = policy_ca
copy_extensions = copy
[ policy_client ]
countryName = optional
stateOrProvinceName = optional
organizationName = optional
organizationalUnitName = optional
commonName = supplied
emailAddress = optional
[ policy_server ]
countryName = optional
stateOrProvinceName = optional
organizationName = optional
organizationalUnitName = optional
commonName = supplied
emailAddress = optional
[ policy_workstation ]
countryName = optional
stateOrProvinceName = optional
organizationName = optional
organizationalUnitName = optional
commonName = supplied
emailAddress = optional
[ policy_ca ]
countryName = optional
stateOrProvinceName = optional
organizationName = optional
organizationalUnitName = optional
commonName = supplied
emailAddress = optional
[ req ]
default_bits = 4096
default_keyfile = privkey.pem
distinguished_name = req_distinguished_name
attributes = req_attributes
x509_extensions = v3_ca
string_mask = nombstr
req_extensions = v3_req
[ req_distinguished_name ]
countryName = Country Name (2 letter code)
countryName_default = __DEFAULT_COUNTRY__
countryName_min = 2
countryName_max = 2
stateOrProvinceName = State or Province Name (full name)
stateOrProvinceName_default = __DEFAULT_PROVINCE__
localityName = Locality Name (eg, city)
localityName_default = __DEFAULT_CITY__
0.organizationName = Organization Name (eg, company)
0.organizationName_default = __DEFAULT_ORGANIZATION_NAME__
organizationalUnitName = Organizational Unit Name (eg, section)
organizationalUnitName_default = __DEFAULT_ORGANIZATION_UNIT__
commonName = Common Name (eg, YOUR name)
commonName_default =
commonName_max = 64
emailAddress = Email Address
emailAddress_default =
emailAddress_max = 40
[ req_attributes ]
challengePassword = A challenge password
challengePassword_min = 4
challengePassword_max = 20
unstructuredName = An optional company name
[ client_cert ]
basicConstraints = CA:FALSE
nsCertType = client, email, objsign
nsComment = "__DEFAULT_CLIENT_NSCOMMENT__"
keyUsage = nonRepudiation, digitalSignature, keyEncipherment, dataEncipherment
extendedKeyUsage = codeSigning, emailProtection, clientAuth
subjectKeyIdentifier = hash
authorityKeyIdentifier = keyid,issuer:always
subjectAltName = email:copy
issuerAltName = issuer:copy
nsCaRevocationUrl = __DEFAULT_CLIENT_CLR_URL__
[ server_cert ]
basicConstraints = CA:FALSE
nsCertType = server, client
nsComment = "__DEFAULT_SERVER_NSCOMMENT__"
subjectKeyIdentifier = hash
authorityKeyIdentifier = keyid,issuer:always
subjectAltName = __REPLACE__
issuerAltName = issuer:copy
nsCaRevocationUrl = __DEFAULT_SERVER_CRL_URL__
[ workstation_cert ]
basicConstraints = CA:FALSE
nsCertType = client
nsComment = "__DEFAULT_WORKSTATION_NSCOMMENT__"
subjectKeyIdentifier = hash
authorityKeyIdentifier = keyid,issuer:always
subjectAltName = email:copy
issuerAltName = issuer:copy
nsCaRevocationUrl = __DEFAULT_WORKSTATION_CRL_URL__
[ v3_ca ]
nsComment = "__DEFAULT_CA_NSCOMMENT__"
subjectKeyIdentifier = hash
authorityKeyIdentifier = keyid:always,issuer:always
basicConstraints = critical,CA:true
keyUsage = keyCertSign, cRLSign
nsCertType = sslCA, emailCA
subjectAltName = email:copy
issuerAltName = issuer:copy
nsCaRevocationUrl = __DEFAULT_CA_CRL_URL__
[ crl_ext ]
authorityKeyIdentifier = keyid:always,issuer:always
[ v3_req ]
basicConstraints = CA:FALSE
keyUsage = nonRepudiation, digitalSignature, keyEncipherment