Repository navigation
Expand file tree
/
Copy pathopenssl.template.cnf
More file actions
68 lines (57 loc) · 1.84 KB
/
Copy pathopenssl.template.cnf
File metadata and controls
68 lines (57 loc) · 1.84 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
[default]
CADATAPATH = .
dir = $ENV::CADATAPATH
.include = $dir/pkcs11.cnf
[ca]
default_ca = root_ca
[root_ca]
certificate = $dir/ca/ca.crt.pem
private_key = "pkcs11:id=%01;type=private"
new_certs_dir = $dir/certs
serial = $dir/db/ca.crt.serial
crlnumber = $dir/db/ca.crl.serial
database = $dir/db/ca.db
unique_subject = no
default_days = 3652
default_md = sha256
policy = match_pol
email_in_dn = no
preserve = no
name_opt = ca_default
cert_opt = ca_default
copy_extensions = copy
default_crl_days = 180
crl_extensions = crl_ext
################################################################################
# Modify these values to suit your desied environment #
################################################################################
[match_pol]
commonName = supplied
localityName = optional
stateOrProvinceName = optional
organizationName = optional
organizationalUnitName = optional
countryName = optional
domainComponent = optional
################################################################################
[crl_ext]
authorityKeyIdentifier = keyid:always
issuingDistributionPoint = critical,@crl_ext_idp
[crl_ext_idp]
fullname = URI:$CDPURL
[root_ca_ext]
keyUsage = critical,keyCertSign,cRLSign
basicConstraints = critical,CA:true
subjectKeyIdentifier = hash
authorityKeyIdentifier = keyid:always
[issuing_ca_ext]
keyUsage = critical,keyCertSign,cRLSign
basicConstraints = critical,CA:true,pathlen:0
subjectKeyIdentifier = hash
authorityKeyIdentifier = keyid:always
authorityInfoAccess = @issuing_ca_aia
crlDistributionPoints = @issuing_ca_cdp
[issuing_ca_aia]
caIssuers;URI.0 = $AIAURL
[issuing_ca_cdp]
URI.0 = $CDPURL