|
| 1 | +[ ca ] |
| 2 | +# `man ca` |
| 3 | +default_ca = CA_default |
| 4 | + |
| 5 | +[ CA_default ] |
| 6 | +# Directory and file locations. |
| 7 | +dir = . |
| 8 | +certs = $dir/certs |
| 9 | +new_certs_dir = $dir/certs |
| 10 | +database = $dir/certs/index.txt |
| 11 | +serial = $dir/certs/serial |
| 12 | +RANDFILE = $dir/private/.rand |
| 13 | + |
| 14 | +# The root key and root certificate. |
| 15 | +private_key = $dir/certs/ca-key.pem |
| 16 | +certificate = $dir/certs/ca-cert.pem |
| 17 | + |
| 18 | +# For certificate revocation lists. |
| 19 | +crlnumber = $dir/certs/crlnumber |
| 20 | +crl_extensions = crl_ext |
| 21 | +default_crl_days = 1000 |
| 22 | + |
| 23 | +# SHA-1 is deprecated, so use SHA-2 instead. |
| 24 | +default_md = sha256 |
| 25 | + |
| 26 | +name_opt = ca_default |
| 27 | +cert_opt = ca_default |
| 28 | +default_days = 3650 |
| 29 | +preserve = no |
| 30 | +policy = policy_loose |
| 31 | +unique_subject = no |
| 32 | + |
| 33 | +[ policy_strict ] |
| 34 | +# The root CA should only sign intermediate certificates that match. |
| 35 | +# See the POLICY FORMAT section of `man ca`. |
| 36 | +countryName = match |
| 37 | +stateOrProvinceName = match |
| 38 | +organizationName = match |
| 39 | +organizationalUnitName = optional |
| 40 | +commonName = supplied |
| 41 | +emailAddress = optional |
| 42 | + |
| 43 | +[ policy_loose ] |
| 44 | +# Allow the intermediate CA to sign a more diverse range of certificates. |
| 45 | +# See the POLICY FORMAT section of the `ca` man page. |
| 46 | +countryName = optional |
| 47 | +stateOrProvinceName = optional |
| 48 | +localityName = optional |
| 49 | +organizationName = optional |
| 50 | +organizationalUnitName = optional |
| 51 | +commonName = supplied |
| 52 | +emailAddress = optional |
| 53 | + |
| 54 | +[ req ] |
| 55 | +# Options for the `req` tool (`man req`). |
| 56 | +default_bits = 2048 |
| 57 | +distinguished_name = req_distinguished_name |
| 58 | +string_mask = utf8only |
| 59 | + |
| 60 | +# SHA-1 is deprecated, so use SHA-2 instead. |
| 61 | +default_md = sha256 |
| 62 | + |
| 63 | +# Extension to add when the -x509 option is used. |
| 64 | +x509_extensions = v3_ca |
| 65 | + |
| 66 | +[ req_distinguished_name ] |
| 67 | +countryName = US |
| 68 | +stateOrProvinceName = Washington |
| 69 | +localityName = Seattle |
| 70 | +0.organizationName = wolfSSL |
| 71 | +organizationalUnitName = Development |
| 72 | +commonName = www.wolfssl.com |
| 73 | + |
| 74 | + |
| 75 | +[ v3_ca ] |
| 76 | +# Extensions for a typical CA (`man x509v3_config`). |
| 77 | +subjectKeyIdentifier = hash |
| 78 | +authorityKeyIdentifier = keyid:always,issuer |
| 79 | +basicConstraints = critical, CA:true |
| 80 | +keyUsage = critical, digitalSignature, cRLSign, keyCertSign |
| 81 | + |
| 82 | +[ v3_intermediate_ca ] |
| 83 | +# Extensions for a typical intermediate CA (`man x509v3_config`). |
| 84 | +subjectKeyIdentifier = hash |
| 85 | +authorityKeyIdentifier = keyid:always,issuer |
| 86 | +basicConstraints = critical, CA:true, pathlen:0 |
| 87 | +keyUsage = critical, digitalSignature, cRLSign, keyCertSign |
| 88 | + |
| 89 | +[ usr_cert ] |
| 90 | +# Extensions for client certificates (`man x509v3_config`). |
| 91 | +basicConstraints = CA:FALSE |
| 92 | +nsCertType = client, email |
| 93 | +subjectKeyIdentifier = hash |
| 94 | +authorityKeyIdentifier = keyid,issuer |
| 95 | +keyUsage = critical, nonRepudiation, digitalSignature, keyEncipherment |
| 96 | +extendedKeyUsage = clientAuth, emailProtection |
| 97 | + |
| 98 | +[ server_cert ] |
| 99 | +# Extensions for server certificates (`man x509v3_config`). |
| 100 | +basicConstraints = CA:FALSE |
| 101 | +nsCertType = server |
| 102 | +subjectKeyIdentifier = hash |
| 103 | +subjectAltName=IP:127.0.0.1 |
| 104 | +authorityKeyIdentifier = keyid,issuer:always |
| 105 | +keyUsage = critical, digitalSignature, keyEncipherment, keyAgreement |
| 106 | +extendedKeyUsage = serverAuth |
| 107 | + |
| 108 | +[ crl_ext ] |
| 109 | +# Extension for CRLs (`man x509v3_config`). |
| 110 | +authorityKeyIdentifier=keyid:always |
0 commit comments