Zack Williams | a52a6a7 | 2018-07-10 11:41:19 -0700 | [diff] [blame] | 1 | # 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 ] |
| 16 | default_ca = CA_default |
| 17 | |
| 18 | [ CA_default ] |
| 19 | dir = ./root_ca |
| 20 | certs = $dir/certs |
| 21 | crl_dir = $dir/crl |
| 22 | new_certs_dir = $dir/newcerts |
| 23 | database = $dir/index.txt |
| 24 | serial = $dir/serial |
| 25 | |
| 26 | private_key = $dir/private/ca_key.pem |
| 27 | certificate = voltha-CA.pem |
| 28 | |
| 29 | # Make new requests easier to sign - allow two subjects with same name |
| 30 | # (Or revoke the old certificate first.) |
| 31 | unique_subject = no |
| 32 | preserve = no |
| 33 | |
| 34 | # for CA that signs client certs |
| 35 | policy = policy_loose |
| 36 | |
| 37 | [ policy_loose ] |
| 38 | # Allow the 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 = 2048 |
| 49 | default_days = 366 |
| 50 | default_md = sha256 |
| 51 | distinguished_name = req_distinguished_name |
| 52 | string_mask = utf8only |
| 53 | x509_extensions = v3_ca |
| 54 | |
| 55 | [ req_distinguished_name ] |
| 56 | # See <https://en.wikipedia.org/wiki/Certificate_signing_request>. |
| 57 | countryName = Country Name (2 letter code) |
| 58 | stateOrProvinceName = State or Province Name |
| 59 | localityName = Locality Name |
| 60 | 0.organizationName = Organization Name |
| 61 | organizationalUnitName = Organizational Unit Name |
| 62 | commonName = Common Name |
| 63 | emailAddress = Email Address |
| 64 | |
| 65 | # Defaults DN |
| 66 | countryName_default = US |
| 67 | stateOrProvinceName_default = California |
| 68 | localityName_default = Menlo Park |
| 69 | 0.organizationName_default = ONF |
| 70 | organizationalUnitName_default = Testing Only |
| 71 | commonName = VOLTHA Testing |
| 72 | emailAddress_default = do-not-reply@opencord.org |
| 73 | |
| 74 | [ v3_ca ] |
| 75 | # Extensions for a typical CA (`man x509v3_config`). |
| 76 | subjectKeyIdentifier = hash |
| 77 | authorityKeyIdentifier = keyid:always,issuer |
| 78 | basicConstraints = critical, CA:TRUE |
| 79 | keyUsage = critical, digitalSignature, cRLSign, keyCertSign |
| 80 | |
| 81 | [ server_cert ] |
| 82 | # Extensions for server certificates (`man x509v3_config`). |
| 83 | subjectKeyIdentifier = hash |
| 84 | authorityKeyIdentifier = keyid,issuer:always |
| 85 | basicConstraints = CA:FALSE |
| 86 | keyUsage = critical, digitalSignature, keyEncipherment |
| 87 | extendedKeyUsage = serverAuth |
| 88 | subjectAltName = 'DNS:voltha.dns' |
| 89 | |