Zack Williams | c047c87 | 2017-01-11 08:38:15 -0700 | [diff] [blame] | 1 | # Created by openssl_im.cnf.j2, configured by ansible |
| 2 | |
| 3 | [ ca ] |
| 4 | default_ca = CA_default |
| 5 | |
| 6 | [ CA_default ] |
Zack Williams | 44845c6 | 2017-04-21 13:57:14 -0700 | [diff] [blame] | 7 | dir = {{ pki_dir }}/{{ site_name }}_im_ca |
Zack Williams | c047c87 | 2017-01-11 08:38:15 -0700 | [diff] [blame] | 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/im_key.pem |
| 16 | certificate = $dir/certs/im_cert.pem |
| 17 | |
| 18 | crlnumber = $dir/crl/crlnumber |
| 19 | crl = $dir/crl/im_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 | |
| 29 | name_opt = ca_default |
| 30 | cert_opt = ca_default |
| 31 | default_days = {{ ca_im_days }} |
| 32 | preserve = no |
| 33 | |
| 34 | # for CA that signs client certs |
| 35 | policy = policy_loose |
| 36 | |
| 37 | [ policy_loose ] |
| 38 | # Allow the intermediate CA to sign more types of certs |
| 39 | countryName = optional |
| 40 | stateOrProvinceName = optional |
| 41 | localityName = optional |
| 42 | organizationName = optional |
| 43 | organizationalUnitName = optional |
| 44 | commonName = supplied |
| 45 | emailAddress = optional |
| 46 | |
| 47 | [ req ] |
| 48 | default_bits = {{ ca_size }} |
| 49 | default_md = {{ ca_digest }} |
| 50 | distinguished_name = req_distinguished_name |
| 51 | string_mask = utf8only |
| 52 | x509_extensions = v3_intermediate_ca |
| 53 | |
| 54 | [ req_distinguished_name ] |
| 55 | # See <https://en.wikipedia.org/wiki/Certificate_signing_request>. |
| 56 | countryName = Country Name (2 letter code) |
| 57 | stateOrProvinceName = State or Province Name |
| 58 | localityName = Locality Name |
| 59 | 0.organizationName = Organization Name |
| 60 | organizationalUnitName = Organizational Unit Name |
| 61 | commonName = Common Name |
| 62 | emailAddress = Email Address |
| 63 | |
| 64 | # Some defaults |
| 65 | countryName_default = US |
| 66 | stateOrProvinceName_default = California |
| 67 | localityName_default = Menlo Park |
| 68 | 0.organizationName_default = ON.Lab |
Zack Williams | 44845c6 | 2017-04-21 13:57:14 -0700 | [diff] [blame] | 69 | organizationalUnitName_default = {{ site_humanname }} |
Zack Williams | c047c87 | 2017-01-11 08:38:15 -0700 | [diff] [blame] | 70 | emailAddress_default = privateca@opencord.org |
| 71 | |
| 72 | [ v3_intermediate_ca ] |
| 73 | # Extensions for a typical intermediate CA (`man x509v3_config`). |
| 74 | subjectKeyIdentifier = hash |
| 75 | authorityKeyIdentifier = keyid:always,issuer |
| 76 | basicConstraints = critical, CA:TRUE, pathlen:0 |
| 77 | keyUsage = critical, digitalSignature, cRLSign, keyCertSign |
| 78 | |
| 79 | [ server_cert ] |
| 80 | # Extensions for server certificates (`man x509v3_config`). |
| 81 | subjectKeyIdentifier = hash |
| 82 | authorityKeyIdentifier = keyid,issuer:always |
| 83 | basicConstraints = CA:FALSE |
| 84 | keyUsage = critical, digitalSignature, keyEncipherment |
| 85 | extendedKeyUsage = serverAuth |
| 86 | subjectAltName = ${ENV::KEY_ALTNAMES} |
| 87 | |
| 88 | [ user_cert ] |
| 89 | # Extensions for client certificates (`man x509v3_config`). |
| 90 | subjectKeyIdentifier = hash |
| 91 | authorityKeyIdentifier = keyid,issuer:always |
| 92 | basicConstraints = CA:FALSE |
| 93 | keyUsage = critical, digitalSignature, keyEncipherment, nonRepudiation |
| 94 | extendedKeyUsage = clientAuth, emailProtection |
| 95 | |
| 96 | [ crl_ext ] |
| 97 | # Extension for CRLs (`man x509v3_config`). |
| 98 | authorityKeyIdentifier=keyid:always |
| 99 | |
| 100 | [ ocsp ] |
| 101 | # Extension for OCSP signing certificates (`man ocsp`). |
| 102 | basicConstraints = CA:FALSE |
| 103 | subjectKeyIdentifier = hash |
| 104 | authorityKeyIdentifier = keyid,issuer |
| 105 | keyUsage = critical, digitalSignature |
| 106 | extendedKeyUsage = critical, OCSPSigning |
| 107 | |