Matteo Scandolo | 3896c47 | 2017-08-01 13:31:42 -0700 | [diff] [blame] | 1 | |
| 2 | {# |
| 3 | Copyright 2017-present Open Networking Foundation |
| 4 | |
| 5 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | you may not use this file except in compliance with the License. |
| 7 | You may obtain a copy of the License at |
| 8 | |
| 9 | http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | |
| 11 | Unless required by applicable law or agreed to in writing, software |
| 12 | distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | See the License for the specific language governing permissions and |
| 15 | limitations under the License. |
| 16 | #} |
| 17 | |
| 18 | |
Zack Williams | c047c87 | 2017-01-11 08:38:15 -0700 | [diff] [blame] | 19 | # Created by openssl_root.cnf.j2, configured by ansible |
| 20 | |
| 21 | [ ca ] |
| 22 | default_ca = CA_default |
| 23 | |
| 24 | [ CA_default ] |
| 25 | dir = {{ pki_dir }}/root_ca |
| 26 | certs = $dir/certs |
| 27 | crl_dir = $dir/crl |
| 28 | new_certs_dir = $dir/newcerts |
| 29 | database = $dir/index.txt |
| 30 | serial = $dir/serial |
| 31 | RANDFILE = $dir/private/.randfile |
| 32 | |
| 33 | private_key = $dir/private/ca_key.pem |
| 34 | certificate = $dir/certs/ca_cert.pem |
| 35 | |
| 36 | crlnumber = $dir/crl/crlnumber |
| 37 | crl = $dir/crl/ca_crl.pem |
| 38 | crl_extensions = crl_ext |
| 39 | default_crl_days = 30 |
| 40 | |
| 41 | # Make new requests easier to sign - allow two subjects with same name |
| 42 | # (Or revoke the old certificate first.) |
| 43 | unique_subject = no |
| 44 | |
| 45 | default_md = {{ ca_digest }} |
| 46 | name_opt = ca_default |
| 47 | cert_opt = ca_default |
| 48 | default_days = {{ ca_root_days }} |
| 49 | preserve = no |
| 50 | |
| 51 | # for CA that only signs intermediate CA certs |
| 52 | policy = policy_strict |
| 53 | |
| 54 | [ policy_strict ] |
| 55 | # Used by root CA to sign intermediate CA's, should match |
| 56 | countryName = match |
| 57 | stateOrProvinceName = match |
| 58 | organizationName = match |
| 59 | organizationalUnitName = optional |
| 60 | commonName = supplied |
| 61 | emailAddress = optional |
| 62 | |
| 63 | [ req ] |
| 64 | default_bits = {{ ca_size }} |
| 65 | default_md = {{ ca_digest }} |
| 66 | distinguished_name = req_distinguished_name |
| 67 | string_mask = utf8only |
| 68 | x509_extensions = v3_ca |
| 69 | |
| 70 | [ req_distinguished_name ] |
| 71 | # See <https://en.wikipedia.org/wiki/Certificate_signing_request>. |
| 72 | countryName = Country Name (2 letter code) |
| 73 | stateOrProvinceName = State or Province Name |
| 74 | localityName = Locality Name |
| 75 | 0.organizationName = Organization Name |
| 76 | organizationalUnitName = Organizational Unit Name |
| 77 | commonName = Common Name |
| 78 | emailAddress = Email Address |
| 79 | |
| 80 | # Some defaults |
| 81 | countryName_default = US |
| 82 | stateOrProvinceName_default = California |
| 83 | localityName_default = Menlo Park |
| 84 | 0.organizationName_default = ON.Lab |
| 85 | organizationalUnitName_default = Test Deployment |
| 86 | emailAddress_default = privateca@opencord.org |
| 87 | |
| 88 | [ v3_ca ] |
| 89 | # Extensions for a typical CA (`man x509v3_config`). |
| 90 | subjectKeyIdentifier = hash |
| 91 | authorityKeyIdentifier = keyid:always,issuer |
| 92 | basicConstraints = critical, CA:TRUE |
| 93 | keyUsage = critical, digitalSignature, cRLSign, keyCertSign |
| 94 | |
| 95 | [ v3_intermediate_ca ] |
| 96 | # Extensions for a typical intermediate CA (`man x509v3_config`). |
| 97 | subjectKeyIdentifier = hash |
| 98 | authorityKeyIdentifier = keyid:always,issuer |
| 99 | basicConstraints = critical, CA:TRUE, pathlen:0 |
| 100 | keyUsage = critical, digitalSignature, cRLSign, keyCertSign |
| 101 | |
| 102 | [ crl_ext ] |
| 103 | # Extension for CRLs (`man x509v3_config`). |
| 104 | authorityKeyIdentifier=keyid:always |
| 105 | |
| 106 | [ ocsp ] |
| 107 | # Extension for OCSP signing certificates (`man ocsp`). |
| 108 | basicConstraints = CA:FALSE |
| 109 | subjectKeyIdentifier = hash |
| 110 | authorityKeyIdentifier = keyid,issuer |
| 111 | keyUsage = critical, digitalSignature |
| 112 | extendedKeyUsage = critical, OCSPSigning |
| 113 | |