|
| 1 | +[ ca ] # The default CA section |
| 2 | +default_ca = CA_default # The default CA name |
| 3 | + |
| 4 | +[ CA_default ] # Default settings for the intermediate CA |
| 5 | +dir = <ca-dir> # Intermediate CA directory |
| 6 | +certs = $dir/certs # Certificates directory |
| 7 | +crl_dir = $dir/crl # CRL directory |
| 8 | +new_certs_dir = $dir/newcerts # New certificates directory |
| 9 | +database = $dir/index.txt # Certificate index file |
| 10 | +serial = $dir/serial # Serial number file |
| 11 | +RANDFILE = $dir/private/.rand # Random number file |
| 12 | +private_key = $dir/private/intermediate.key.pem # Intermediate CA private key |
| 13 | +certificate = $dir/certs/intermediate.cert.pem # Intermediate CA certificate |
| 14 | +crl = $dir/crl/intermediate.crl.pem # Intermediate CA CRL |
| 15 | +crlnumber = $dir/crlnumber # Intermediate CA CRL number |
| 16 | +crl_extensions = crl_ext # CRL extensions |
| 17 | +default_days = 365 # Default number of days to certify the cert for |
| 18 | +default_crl_days = 30 # Default CRL validity days |
| 19 | +default_md = sha256 # Default message digest |
| 20 | +preserve = no # Preserve existing extensions |
| 21 | +email_in_dn = no # Exclude email from the DN |
| 22 | +name_opt = ca_default # Formatting options for names |
| 23 | +cert_opt = ca_default # Certificate output options |
| 24 | +policy = policy_loose # Certificate policy |
| 25 | +unique_subject = no # Allow non unique subjects |
| 26 | + |
| 27 | +[ policy_loose ] # Policy for less strict validation |
| 28 | +countryName = optional # Country is optional |
| 29 | +stateOrProvinceName = optional # State or province is optional |
| 30 | +localityName = optional # Locality is optional |
| 31 | +organizationName = optional # Organization is optional |
| 32 | +organizationalUnitName = optional # Organizational unit is optional |
| 33 | +commonName = supplied # Must provide a common name |
| 34 | +emailAddress = optional # Email address is optional |
| 35 | + |
| 36 | +[ req ] # Request settings |
| 37 | +default_bits = 4096 # Default key size |
| 38 | +distinguished_name = req_distinguished_name # Default DN template |
| 39 | +string_mask = utf8only # UTF-8 encoding |
| 40 | +default_md = sha256 # Default message digest |
| 41 | +x509_extensions = v3_intermediate_ca # Extensions for intermediate CA certificate |
| 42 | + |
| 43 | +[ req_distinguished_name ] # Template for the DN in the CSR |
| 44 | +countryName = <country-name> # Country Name (2 letter code) |
| 45 | +stateOrProvinceName = <state> # State or Province Name (full name) |
| 46 | +localityName = <location> # Locality Name (city) |
| 47 | +0.organizationName = <organization> # Organization Name (company) |
| 48 | +organizationalUnitName = <organization-unit> # Organizational Unit Name (section) |
| 49 | +commonName = <common-name> # Common Name (your domain) |
| 50 | +emailAddress = <email> # Email Address |
| 51 | +countryName_default = <country-name> # Country Name (2 letter code) |
| 52 | +stateOrProvinceName_default = <state> # State or Province Name (full name) |
| 53 | +localityName_default = <location> # Locality Name (city) |
| 54 | +0.organizationName_default = <organization> # Organization Name (company) |
| 55 | +organizationalUnitName_default = <organization-unit> # Organizational Unit Name (section) |
| 56 | +commonName_default = <common-name> # Common Name (your domain) |
| 57 | +emailAddress_default = <email> # Email Address |
| 58 | + |
| 59 | +[ v3_intermediate_ca ] # Intermediate CA certificate extensions |
| 60 | +subjectKeyIdentifier = hash # Subject key identifier |
| 61 | +authorityKeyIdentifier = keyid:always,issuer # Authority key identifier |
| 62 | +basicConstraints = critical, CA:true, pathlen:0 # Basic constraints for a CA |
| 63 | +keyUsage = critical, digitalSignature, cRLSign, keyCertSign # Key usage for a CA |
| 64 | + |
| 65 | +[ crl_ext ] # CRL extensions |
| 66 | +authorityKeyIdentifier=keyid:always # Authority key identifier |
| 67 | + |
| 68 | +[ server_cert ] # Server certificate extensions |
| 69 | +basicConstraints = CA:FALSE # Not a CA certificate |
| 70 | +nsCertType = server # Server certificate type |
| 71 | +keyUsage = critical, digitalSignature, keyEncipherment # Key usage for a server cert |
| 72 | +extendedKeyUsage = serverAuth # Extended key usage for server authentication purposes (e.g., TLS/SSL servers). |
| 73 | +authorityKeyIdentifier = keyid,issuer # Authority key identifier linking the certificate to the issuer's public key. |
| 74 | + |
| 75 | +[ client_cert ] # Client certificate extensions |
| 76 | +basicConstraints = CA:FALSE # Not a CA certificate |
| 77 | +nsCertType = client, email # Client certificate type |
| 78 | +keyUsage = critical, nonRepudiation, digitalSignature, keyEncipherment # Key usage for a server cert |
| 79 | +extendedKeyUsage = clientAuth, emailProtection # Extended key usage for server authentication purposes (e.g., TLS/SSL client). |
| 80 | +authorityKeyIdentifier = keyid,issuer # Authority key identifier linking the certificate to the issuer's public key. |
0 commit comments