blob: a6917ca9bce36db2be213fa3993b5540714c875c [file] [log] [blame]
Samuli Silviusf5534d82018-12-21 16:08:09 +02001[ ca ]
2# `man ca`
3default_ca = CA_default
4
5[ CA_default ]
6# Directory and file locations.
7dir = ./
8certs = $dir/certs
9crl_dir = $dir/crl
10new_certs_dir = $dir/newcerts
11database = $dir/index.txt
12serial = $dir/serial
13RANDFILE = $dir/private/.rand
14
15# The root key and root certificate.
16private_key = $dir/private/ca.key.pem
17certificate = $dir/certs/ca.cert.pem
18
19# For certificate revocation lists.
20crlnumber = $dir/crlnumber
21crl = $dir/crl/ca.crl.pem
22crl_extensions = crl_ext
23default_crl_days = 30
24
25# SHA-1 is deprecated, so use SHA-2 instead.
26default_md = sha256
27
28name_opt = ca_default
29cert_opt = ca_default
30default_days = 3750
31preserve = no
32policy = policy_strict
33
34[ policy_strict ]
35# The root CA should only sign intermediate certificates that match.
36# See the POLICY FORMAT section of `man ca`.
37countryName = match
38organizationName = match
39commonName = supplied
40
41[ policy_loose ]
42# Allow the intermediate CA to sign a more diverse range of certificates.
43# See the POLICY FORMAT section of the `ca` man page.
44countryName = optional
45localityName = optional
46organizationName = optional
47commonName = supplied
48
49[ req ]
50# Options for the `req` tool (`man req`).
51default_bits = 4096
52distinguished_name = req_distinguished_name
53string_mask = utf8only
54prompt = no
55
56# SHA-1 is deprecated, so use SHA-2 instead.
57default_md = sha256
58
59# Extension to add when the -x509 option is used.
60x509_extensions = v3_ca
61
62[ req_distinguished_name ]
63# Optionally, specify some defaults.
64countryName = PL
65localityName = Krakow
66organizationName = Samsung
67commonName = onap
68
69[ v3_ca ]
70# Extensions for a typical CA (`man x509v3_config`).
71subjectKeyIdentifier = hash
72authorityKeyIdentifier = keyid:always,issuer
73basicConstraints = critical, CA:true
74keyUsage = critical, digitalSignature, cRLSign, keyCertSign
75
76[ v3_intermediate_ca ]
77# Extensions for a typical intermediate CA (`man x509v3_config`).
78subjectKeyIdentifier = hash
79authorityKeyIdentifier = keyid:always,issuer
80basicConstraints = critical, CA:true, pathlen:0
81keyUsage = critical, digitalSignature, cRLSign, keyCertSign
82
83[ usr_cert ]
84# Extensions for client certificates (`man x509v3_config`).
85basicConstraints = CA:FALSE
86nsCertType = client, email
87nsComment = "OpenSSL Generated Client Certificate"
88subjectKeyIdentifier = hash
89authorityKeyIdentifier = keyid,issuer
90keyUsage = critical, nonRepudiation, digitalSignature, keyEncipherment
91extendedKeyUsage = clientAuth, emailProtection
92
93[ server_cert ]
94# Extensions for server certificates (`man x509v3_config`).
95basicConstraints = CA:FALSE
96nsCertType = server
97nsComment = "OpenSSL Generated Server Certificate"
98subjectKeyIdentifier = hash
99authorityKeyIdentifier = keyid,issuer:always
100keyUsage = critical, digitalSignature, keyEncipherment
101extendedKeyUsage = serverAuth
102
103[ crl_ext ]
104# Extension for CRLs (`man x509v3_config`).
105authorityKeyIdentifier=keyid:always
106
107[ ocsp ]
108# Extension for OCSP signing certificates (`man ocsp`).
109basicConstraints = CA:FALSE
110subjectKeyIdentifier = hash
111authorityKeyIdentifier = keyid,issuer
112keyUsage = critical, digitalSignature
113extendedKeyUsage = critical, OCSPSigning