-
Notifications
You must be signed in to change notification settings - Fork 3
/
openssl_personal_cas.cnf
214 lines (187 loc) · 7.73 KB
/
openssl_personal_cas.cnf
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
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
# Copyright © 2017 Alessandro Menti
#
# This file is licensed under the terms and conditions of the MIT license.
# See the LICENSE file for more details.
# OpenSSL configuration file for personal certificate CAs.
oid_file = additional_oids
[ca]
default_ca = personal-emailvalidated_ca
[req]
default_bits = 4096
default_md = sha256
string_mask = utf8only
distinguished_name = req_dn
[req_dn]
givenName = "First name"
surname = "Surname"
organizationName = "Organization name"
streetAddress = "Street address"
localityName = "Locality"
stateOrProvinceName = "State or Province"
postalCode = "ZIP code"
countryName = "Country"
countryName_min = 2
countryName_max = 2
# ----------------------------------------------------------------------------
[personal-emailvalidated_ca]
dir = ./personal-emailvalidated
database = $dir/index
serial = $dir/serial
crlnumber = $dir/crlserial
certificate = $dir/personal-emailvalidatedca.cer
private_key = $dir/personal-emailvalidatedca.pvk
new_certs_dir = $dir/newcerts
# Choose SHA-256 as the hash algorithm.
default_md = sha256
# Make certificates valid for a year and CRLs valid for seven days.
default_days = 365
default_crl_days = 7
# To ease key rollover, allow certificates to have the same Subject DN and be
# valid at the same time.
unique_subject = no
# Only add the DN components/extensions we specify here to the issued
# certificates.
preserve = no
copy_extensions = none
email_in_dn = no
policy = personal-emailvalidated_dn_policy
# Show (almost all) details when signing a certificate request.
name_opt = ca_default
cert_opt = ca_default
x509_extensions = personal-emailvalidated_certificate_extensions
crl_extensions = personal-emailvalidated_crl_extensions
# Extensions for personal, e-mail validated certificates.
[personal-emailvalidated_certificate_extensions]
basicConstraints = critical,CA:FALSE
keyUsage = critical,digitalSignature,keyEncipherment
extendedKeyUsage = clientAuth,emailProtection
# Replace the e-mail address here
subjectAltName = critical,email:[email protected]
subjectKeyIdentifier = hash
authorityKeyIdentifier = keyid:always
# Replace the URLs here
authorityInfoAccess = OCSP;URI:http://myca.example.com/ocsp/personal-emailvalidatedca,caIssuers;URI:http://myca.example.com/repository/personal-emailvalidatedca.cer
crlDistributionPoints = URI:http://myca.example.com/repository/personal-emailvalidatedca.crl
# If you are following the validation practices mandated by the CA/Browser
# Forum, add "cabBRDomainValidated" to the line below.
certificatePolicies = @polsect
[personal-emailvalidated_dn_policy]
# Do not trust anything
[personal-emailvalidated_crl_extensions]
# Replace the URL here
authorityInfoAccess = caIssuers;URI:http://myca.example.com/repository/personal-emailvalidatedca.cer
authorityKeyIdentifier = keyid:always
# ----------------------------------------------------------------------------
[personal-individualvalidated_ca]
dir = ./personal-individualvalidated
database = $dir/index
serial = $dir/serial
crlnumber = $dir/crlserial
certificate = $dir/personal-individualvalidatedca.cer
private_key = $dir/personal-individualvalidatedca.pvk
new_certs_dir = $dir/newcerts
# Choose SHA-256 as the hash algorithm.
default_md = sha256
# Make certificates valid for a year and CRLs valid for seven days.
default_days = 365
default_crl_days = 7
# To ease key rollover, allow certificates to have the same Subject DN and be
# valid at the same time.
unique_subject = no
# Only add the DN components/extensions we specify here to the issued
# certificates.
preserve = no
copy_extensions = none
email_in_dn = no
policy = personal-individualvalidated_dn_policy
# Show (almost all) details when signing a certificate request.
name_opt = ca_default
cert_opt = ca_default
x509_extensions = personal-individualvalidated_certificate_extensions
crl_extensions = personal-individualvalidated_crl_extensions
# Extensions for personal, individual validated certificates.
[personal-individualvalidated_certificate_extensions]
basicConstraints = critical,CA:FALSE
keyUsage = critical,digitalSignature,keyEncipherment
extendedKeyUsage = clientAuth,emailProtection,adobeAuthenticDocumentsTrust,kpDocumentSigning
# Replace the e-mail address here
subjectAltName = email:[email protected]
subjectKeyIdentifier = hash
authorityKeyIdentifier = keyid:always
# Replace the URLs here
authorityInfoAccess = OCSP;URI:http://myca.example.com/ocsp/personal-individualvalidatedca,caIssuers;URI:http://myca.example.com/repository/personal-individualvalidatedca.cer
crlDistributionPoints = URI:http://myca.example.com/repository/personal-individualvalidatedca.crl
# If you are following the validation practices mandated by the CA/Browser
# Forum, add "cabBRIndividualValidated" to the line below.
certificatePolicies = @polsect
[personal-individualvalidated_dn_policy]
givenName = supplied
surname = supplied
localityName = supplied
stateOrProvinceName = optional
postalCode = optional
countryName = supplied
[personal-individualvalidated_crl_extensions]
# Replace the URL here
authorityInfoAccess = caIssuers;URI:http://myca.example.com/repository/personal-individualvalidatedca.cer
authorityKeyIdentifier = keyid:always
# ----------------------------------------------------------------------------
[personal-organizationvalidated_ca]
dir = ./personal-organizationvalidated
database = $dir/index
serial = $dir/serial
crlnumber = $dir/crlserial
certificate = $dir/personal-organizationvalidatedca.cer
private_key = $dir/personal-organizationvalidatedca.pvk
new_certs_dir = $dir/newcerts
# Choose SHA-256 as the hash algorithm.
default_md = sha256
# Make certificates valid for a year and CRLs valid for seven days.
default_days = 365
default_crl_days = 7
# To ease key rollover, allow certificates to have the same Subject DN and be
# valid at the same time.
unique_subject = no
# Only add the DN components/extensions we specify here to the issued
# certificates.
preserve = no
copy_extensions = none
email_in_dn = no
policy = personal-organizationvalidated_dn_policy
# Show (almost all) details when signing a certificate request.
name_opt = ca_default
cert_opt = ca_default
x509_extensions = personal-organizationvalidated_certificate_extensions
crl_extensions = personal-organizationvalidated_crl_extensions
# Extensions for personal, organization validated certificates.
[personal-organizationvalidated_certificate_extensions]
basicConstraints = critical,CA:FALSE
keyUsage = critical,digitalSignature,keyEncipherment
extendedKeyUsage = clientAuth,emailProtection,adobeAuthenticDocumentsTrust,kpDocumentSigning
# Replace the e-mail address here
subjectAltName = email:[email protected]
subjectKeyIdentifier = hash
authorityKeyIdentifier = keyid:always
# Replace the URLs here
authorityInfoAccess = OCSP;URI:http://myca.example.com/ocsp/personal-organizationvalidatedca,caIssuers;URI:http://myca.example.com/repository/personal-organizationvalidatedca.cer
crlDistributionPoints = URI:http://myca.example.com/repository/personal-organizationvalidatedca.crl
# If you are following the validation practices mandated by the CA/Browser
# Forum, add "cabBROrganizationValidated" to the line below.
certificatePolicies = @polsect
[personal-organizationvalidated_dn_policy]
organizationName = supplied
streetAddress = optional
localityName = supplied
stateOrProvinceName = optional
postalCode = optional
countryName = supplied
[personal-organizationvalidated_crl_extensions]
# Replace the URL here
authorityInfoAccess = caIssuers;URI:http://myca.example.com/repository/personal-organizationvalidatedca.cer
authorityKeyIdentifier = keyid:always
# ----------------------------------------------------------------------------
[polsect]
# Replace myCPSOID with the OID associated to your CPS.
policyIdentifier = 1.2.3.4
# Replace the following URL with the one pointing to your CPS.
CPS.1 = "http://myca.example.com/repository/cps.pdf"