blob: 5349054f09759b570372f2d8e24d860377884d7e [file] [log] [blame]
Zack Williams4b5a9712018-12-13 23:19:51 -07001# Copyright 2017-present Open Networking Foundation
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15[ ca ]
16default_ca = CA_default
17
18[ CA_default ]
19dir = ./root_ca
20certs = $dir/certs
21crl_dir = $dir/crl
22new_certs_dir = $dir/newcerts
23database = $dir/index.txt
24serial = $dir/serial
25
26private_key = $dir/private/ca_key.pem
27certificate = xos-CA.pem
28
29# Make new requests easier to sign - allow two subjects with same name
30# (Or revoke the old certificate first.)
31unique_subject = no
32preserve = no
33
34# for CA that signs client certs
35policy = policy_loose
36
37[ policy_loose ]
38# Allow the to sign more types of certs
39countryName = optional
40stateOrProvinceName = optional
41localityName = optional
42organizationName = optional
43organizationalUnitName = optional
44commonName = supplied
45emailAddress = optional
46
47[ req ]
48default_bits = 2048
49default_days = 366
50default_md = sha256
51distinguished_name = req_distinguished_name
52string_mask = utf8only
53x509_extensions = v3_ca
54
55[ req_distinguished_name ]
56# See <https://en.wikipedia.org/wiki/Certificate_signing_request>.
57countryName = Country Name (2 letter code)
58stateOrProvinceName = State or Province Name
59localityName = Locality Name
600.organizationName = Organization Name
61organizationalUnitName = Organizational Unit Name
62commonName = Common Name
63emailAddress = Email Address
64
65# Defaults DN
66countryName_default = US
67stateOrProvinceName_default = California
68localityName_default = Menlo Park
690.organizationName_default = ONF
70organizationalUnitName_default = Testing Only
71commonName = CORD Testing
72emailAddress_default = do-not-reply@opencord.org
73
74[ v3_ca ]
75# Extensions for a typical CA (`man x509v3_config`).
76subjectKeyIdentifier = hash
77authorityKeyIdentifier = keyid:always,issuer
78basicConstraints = critical, CA:TRUE
79keyUsage = critical, digitalSignature, cRLSign, keyCertSign
80
81# Extensions for certificates (`man x509v3_config`).
82[ xos-core ]
83subjectKeyIdentifier = hash
84authorityKeyIdentifier = keyid,issuer:always
85basicConstraints = CA:FALSE
86keyUsage = critical, digitalSignature, keyEncipherment
87extendedKeyUsage = serverAuth
88subjectAltName = 'DNS:xos-core, DNS:xos-core.default, DNS:xos-core.default.svc.cluster.local'