[c5c522c] | 1 | # For use with Easy-RSA 3.0 and OpenSSL 1.0.* |
---|
| 2 | |
---|
| 3 | RANDFILE = $ENV::EASYRSA_PKI/.rnd |
---|
| 4 | |
---|
| 5 | #################################################################### |
---|
| 6 | [ ca ] |
---|
| 7 | default_ca = CA_default # The default ca section |
---|
| 8 | |
---|
| 9 | #################################################################### |
---|
| 10 | [ CA_default ] |
---|
| 11 | |
---|
| 12 | dir = $ENV::EASYRSA_PKI # Where everything is kept |
---|
| 13 | certs = $dir # Where the issued certs are kept |
---|
| 14 | crl_dir = $dir # Where the issued crl are kept |
---|
| 15 | database = $dir/index.txt # database index file. |
---|
| 16 | new_certs_dir = $dir/certs_by_serial # default place for new certs. |
---|
| 17 | |
---|
| 18 | certificate = $dir/ca.crt # The CA certificate |
---|
| 19 | serial = $dir/serial # The current serial number |
---|
| 20 | crl = $dir/crl.pem # The current CRL |
---|
| 21 | private_key = $dir/private/ca.key # The private key |
---|
| 22 | RANDFILE = $dir/.rand # private random number file |
---|
| 23 | |
---|
| 24 | x509_extensions = basic_exts # The extentions to add to the cert |
---|
| 25 | |
---|
| 26 | # This allows a V2 CRL. Ancient browsers don't like it, but anything Easy-RSA |
---|
| 27 | # is designed for will. In return, we get the Issuer attached to CRLs. |
---|
| 28 | crl_extensions = crl_ext |
---|
| 29 | |
---|
| 30 | default_days = $ENV::EASYRSA_CERT_EXPIRE # how long to certify for |
---|
| 31 | default_crl_days= $ENV::EASYRSA_CRL_DAYS # how long before next CRL |
---|
| 32 | default_md = $ENV::EASYRSA_DIGEST # use public key default MD |
---|
| 33 | preserve = no # keep passed DN ordering |
---|
| 34 | |
---|
| 35 | # A few difference way of specifying how similar the request should look |
---|
| 36 | # For type CA, the listed attributes must be the same, and the optional |
---|
| 37 | # and supplied fields are just that :-) |
---|
| 38 | policy = policy_anything |
---|
| 39 | |
---|
| 40 | # For the 'anything' policy, which defines allowed DN fields |
---|
| 41 | [ policy_anything ] |
---|
| 42 | countryName = optional |
---|
| 43 | stateOrProvinceName = optional |
---|
| 44 | localityName = optional |
---|
| 45 | organizationName = optional |
---|
| 46 | organizationalUnitName = optional |
---|
| 47 | commonName = supplied |
---|
| 48 | name = optional |
---|
| 49 | emailAddress = optional |
---|
| 50 | |
---|
| 51 | #################################################################### |
---|
| 52 | # Easy-RSA request handling |
---|
| 53 | # We key off $DN_MODE to determine how to format the DN |
---|
| 54 | [ req ] |
---|
| 55 | default_bits = $ENV::EASYRSA_KEY_SIZE |
---|
| 56 | default_keyfile = privkey.pem |
---|
| 57 | default_md = $ENV::EASYRSA_DIGEST |
---|
| 58 | distinguished_name = $ENV::EASYRSA_DN |
---|
| 59 | x509_extensions = easyrsa_ca # The extentions to add to the self signed cert |
---|
| 60 | |
---|
| 61 | # A placeholder to handle the $EXTRA_EXTS feature: |
---|
| 62 | #%EXTRA_EXTS% # Do NOT remove or change this line as $EXTRA_EXTS support requires it |
---|
| 63 | |
---|
| 64 | #################################################################### |
---|
| 65 | # Easy-RSA DN (Subject) handling |
---|
| 66 | |
---|
| 67 | # Easy-RSA DN for cn_only support: |
---|
| 68 | [ cn_only ] |
---|
| 69 | commonName = Common Name (eg: your user, host, or server name) |
---|
| 70 | commonName_max = 64 |
---|
| 71 | commonName_default = $ENV::EASYRSA_REQ_CN |
---|
| 72 | |
---|
| 73 | # Easy-RSA DN for org support: |
---|
| 74 | [ org ] |
---|
| 75 | countryName = Country Name (2 letter code) |
---|
| 76 | countryName_default = $ENV::EASYRSA_REQ_COUNTRY |
---|
| 77 | countryName_min = 2 |
---|
| 78 | countryName_max = 2 |
---|
| 79 | |
---|
| 80 | stateOrProvinceName = State or Province Name (full name) |
---|
| 81 | stateOrProvinceName_default = $ENV::EASYRSA_REQ_PROVINCE |
---|
| 82 | |
---|
| 83 | localityName = Locality Name (eg, city) |
---|
| 84 | localityName_default = $ENV::EASYRSA_REQ_CITY |
---|
| 85 | |
---|
| 86 | 0.organizationName = Organization Name (eg, company) |
---|
| 87 | 0.organizationName_default = $ENV::EASYRSA_REQ_ORG |
---|
| 88 | |
---|
| 89 | organizationalUnitName = Organizational Unit Name (eg, section) |
---|
| 90 | organizationalUnitName_default = $ENV::EASYRSA_REQ_OU |
---|
| 91 | |
---|
| 92 | commonName = Common Name (eg: your user, host, or server name) |
---|
| 93 | commonName_max = 64 |
---|
| 94 | commonName_default = $ENV::EASYRSA_REQ_CN |
---|
| 95 | |
---|
| 96 | emailAddress = Email Address |
---|
| 97 | emailAddress_default = $ENV::EASYRSA_REQ_EMAIL |
---|
| 98 | emailAddress_max = 64 |
---|
| 99 | |
---|
| 100 | #################################################################### |
---|
| 101 | # Easy-RSA cert extension handling |
---|
| 102 | |
---|
| 103 | # This section is effectively unused as the main script sets extensions |
---|
| 104 | # dynamically. This core section is left to support the odd usecase where |
---|
| 105 | # a user calls openssl directly. |
---|
| 106 | [ basic_exts ] |
---|
| 107 | basicConstraints = CA:FALSE |
---|
| 108 | subjectKeyIdentifier = hash |
---|
| 109 | authorityKeyIdentifier = keyid,issuer:always |
---|
| 110 | |
---|
| 111 | # The Easy-RSA CA extensions |
---|
| 112 | [ easyrsa_ca ] |
---|
| 113 | |
---|
| 114 | # PKIX recommendations: |
---|
| 115 | |
---|
| 116 | subjectKeyIdentifier=hash |
---|
| 117 | authorityKeyIdentifier=keyid:always,issuer:always |
---|
| 118 | |
---|
| 119 | # This could be marked critical, but it's nice to support reading by any |
---|
| 120 | # broken clients who attempt to do so. |
---|
| 121 | basicConstraints = CA:true |
---|
| 122 | |
---|
| 123 | # Limit key usage to CA tasks. If you really want to use the generated pair as |
---|
| 124 | # a self-signed cert, comment this out. |
---|
| 125 | keyUsage = cRLSign, keyCertSign |
---|
| 126 | |
---|
| 127 | # nsCertType omitted by default. Let's try to let the deprecated stuff die. |
---|
| 128 | # nsCertType = sslCA |
---|
| 129 | |
---|
| 130 | # CRL extensions. |
---|
| 131 | [ crl_ext ] |
---|
| 132 | |
---|
| 133 | # Only issuerAltName and authorityKeyIdentifier make any sense in a CRL. |
---|
| 134 | |
---|
| 135 | # issuerAltName=issuer:copy |
---|
| 136 | authorityKeyIdentifier=keyid:always,issuer:always |
---|
| 137 | |
---|