Zack Williams | c047c87 | 2017-01-11 08:38:15 -0700 | [diff] [blame] | 1 | # Created by openssl_root.cnf.j2, configured by ansible |
| 2 | |
| 3 | [ ca ] |
| 4 | default_ca = CA_default |
| 5 | |
| 6 | [ CA_default ] |
| 7 | dir = {{ pki_dir }}/root_ca |
| 8 | certs = $dir/certs |
| 9 | crl_dir = $dir/crl |
| 10 | new_certs_dir = $dir/newcerts |
| 11 | database = $dir/index.txt |
| 12 | serial = $dir/serial |
| 13 | RANDFILE = $dir/private/.randfile |
| 14 | |
| 15 | private_key = $dir/private/ca_key.pem |
| 16 | certificate = $dir/certs/ca_cert.pem |
| 17 | |
| 18 | crlnumber = $dir/crl/crlnumber |
| 19 | crl = $dir/crl/ca_crl.pem |
| 20 | crl_extensions = crl_ext |
| 21 | default_crl_days = 30 |
| 22 | |
| 23 | # Make new requests easier to sign - allow two subjects with same name |
| 24 | # (Or revoke the old certificate first.) |
| 25 | unique_subject = no |
| 26 | |
| 27 | default_md = {{ ca_digest }} |
| 28 | name_opt = ca_default |
| 29 | cert_opt = ca_default |
| 30 | default_days = {{ ca_root_days }} |
| 31 | preserve = no |
| 32 | |
| 33 | # for CA that only signs intermediate CA certs |
| 34 | policy = policy_strict |
| 35 | |
| 36 | [ policy_strict ] |
| 37 | # Used by root CA to sign intermediate CA's, should match |
| 38 | countryName = match |
| 39 | stateOrProvinceName = match |
| 40 | organizationName = match |
| 41 | organizationalUnitName = optional |
| 42 | commonName = supplied |
| 43 | emailAddress = optional |
| 44 | |
| 45 | [ req ] |
| 46 | default_bits = {{ ca_size }} |
| 47 | default_md = {{ ca_digest }} |
| 48 | distinguished_name = req_distinguished_name |
| 49 | string_mask = utf8only |
| 50 | x509_extensions = v3_ca |
| 51 | |
| 52 | [ req_distinguished_name ] |
| 53 | # See <https://en.wikipedia.org/wiki/Certificate_signing_request>. |
| 54 | countryName = Country Name (2 letter code) |
| 55 | stateOrProvinceName = State or Province Name |
| 56 | localityName = Locality Name |
| 57 | 0.organizationName = Organization Name |
| 58 | organizationalUnitName = Organizational Unit Name |
| 59 | commonName = Common Name |
| 60 | emailAddress = Email Address |
| 61 | |
| 62 | # Some defaults |
| 63 | countryName_default = US |
| 64 | stateOrProvinceName_default = California |
| 65 | localityName_default = Menlo Park |
| 66 | 0.organizationName_default = ON.Lab |
| 67 | organizationalUnitName_default = Test Deployment |
| 68 | emailAddress_default = privateca@opencord.org |
| 69 | |
| 70 | [ v3_ca ] |
| 71 | # Extensions for a typical CA (`man x509v3_config`). |
| 72 | subjectKeyIdentifier = hash |
| 73 | authorityKeyIdentifier = keyid:always,issuer |
| 74 | basicConstraints = critical, CA:TRUE |
| 75 | keyUsage = critical, digitalSignature, cRLSign, keyCertSign |
| 76 | |
| 77 | [ v3_intermediate_ca ] |
| 78 | # Extensions for a typical intermediate CA (`man x509v3_config`). |
| 79 | subjectKeyIdentifier = hash |
| 80 | authorityKeyIdentifier = keyid:always,issuer |
| 81 | basicConstraints = critical, CA:TRUE, pathlen:0 |
| 82 | keyUsage = critical, digitalSignature, cRLSign, keyCertSign |
| 83 | |
| 84 | [ crl_ext ] |
| 85 | # Extension for CRLs (`man x509v3_config`). |
| 86 | authorityKeyIdentifier=keyid:always |
| 87 | |
| 88 | [ ocsp ] |
| 89 | # Extension for OCSP signing certificates (`man ocsp`). |
| 90 | basicConstraints = CA:FALSE |
| 91 | subjectKeyIdentifier = hash |
| 92 | authorityKeyIdentifier = keyid,issuer |
| 93 | keyUsage = critical, digitalSignature |
| 94 | extendedKeyUsage = critical, OCSPSigning |
| 95 | |