-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRoot-CA.cnf
110 lines (96 loc) · 2.97 KB
/
Root-CA.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
oid_section = yubikey_oids
openssl_conf = openssl_def
[yubikey_oids]
.include = yubikey_oids.cnf
[openssl_def]
engines = engine_section
[engine_section]
pkcs11 = pkcs11_section
[pkcs11_section]
engine_id = pkcs11
MODULE_PATH = /usr/lib/opensc-pkcs11.so
init = 0
[ca]
default_ca = CA_default
[CA_default]
# Default hash for issued certificates
default_md = sha512
# Directory where new certificates will be stored
dir = .
# File containing the CA certificate
certificate = $dir/certificates/CA.pem
# File containing the CA private key
private_key = $dir/CA.key
# File containing the database of issued certificates
database = $dir/index.txt
# File containing the serial number counter
serial = $dir/serial
# Default expiration time for newly issued certificates
default_days = 3650
# Default certificate policy
policy = policy_anything
# File containing the certificate revocation list
crl = $dir/CRL.pem
crlnumber = $dir/crlnumber
crl_extensions = crl_ext
# Directory containing CRL distribution points
crl_dir = $dir/crl
# Directory for new Certs
new_certs_dir = $dir/certificates
# CRL expiry time
default_crl_days = 180
[crl_ext]
authorityKeyIdentifier=keyid:always
[policy_anything]
organizationName = optional
organizationalUnitName = optional
localityName = optional
stateOrProvinceName = optional
countryName = optional
emailAddress = optional
GN = optional
title = optional
commonName = supplied
[req]
default_bits = 4096
default_md = sha512
distinguished_name = req_distinguished_name
x509_extensions = v3_ca
string_mask = utf8only
prompt = no
[req_distinguished_name]
L = UK
#ST = England
#C = (City) Optional, Uncomment to use
emailAddress = sophie@smeeton.icu
#GN = (Given Name) Optional, Uncomment to use
#title = (Title) Optional, Uncomment to use
CN = smeeton.icu
[v3_ca]
basicConstraints = critical, CA:true
keyUsage = critical,cRLSign, digitalSignature, keyCertSign
authorityKeyIdentifier = keyid:always,issuer
# Uncomment and replace URI if you intend to publish your crl online
#crlDistributionPoints = URI:https://sophie.smeeton.icu/CA/CRL.pem
[v3_intermediate_ca]
# Extensions for a typical intermediate CA (`man x509v3_config`).
subjectKeyIdentifier = hash
authorityKeyIdentifier = keyid:always,issuer
basicConstraints = critical, CA:true, pathlen:0
keyUsage = critical, digitalSignature, cRLSign, keyCertSign
[server_cert]
# Extensions for server certificates (`man x509v3_config`).
basicConstraints = CA:FALSE
nsCertType = server
nsComment = "OpenSSL Generated Server Certificate"
subjectKeyIdentifier = hash
authorityKeyIdentifier = keyid,issuer:always
keyUsage = critical, digitalSignature, keyEncipherment
extendedKeyUsage = serverAuth
[ocsp]
# Extension for OCSP signing certificates (`man ocsp`).
basicConstraints = CA:FALSE
subjectKeyIdentifier = hash
authorityKeyIdentifier = keyid,issuer
keyUsage = critical, digitalSignature
extendedKeyUsage = critical, OCSPSigning