David Benjamin | 33b5692 | 2022-12-31 17:16:53 -0500 | [diff] [blame] | 1 | # [ req_DN ] |
| 2 | commonName = "Common Name" |
| 3 | commonName_value = "CA" |
| 4 | |
| 5 | #################################################################### |
| 6 | [ req ] |
| 7 | default_bits = 2432 |
| 8 | default_keyfile = cakey.pem |
| 9 | default_md = sha256 |
| 10 | distinguished_name = req_DN |
| 11 | string_mask = utf8only |
| 12 | x509_extensions = v3_selfsign |
| 13 | |
| 14 | [ req_DN ] |
| 15 | commonName = "Common Name" |
| 16 | commonName_value = "CA" |
| 17 | |
| 18 | [ v3_selfsign ] |
| 19 | basicConstraints = critical,CA:true |
| 20 | keyUsage = keyCertSign |
| 21 | subjectKeyIdentifier=hash |
| 22 | |
| 23 | #################################################################### |
| 24 | [ ca ] |
| 25 | default_ca = CA_default # The default ca section |
| 26 | |
| 27 | #################################################################### |
| 28 | [ CA_default ] |
| 29 | |
| 30 | dir = ./demoCA |
| 31 | certificate = ./demoCA/cacert.pem |
| 32 | serial = ./demoCA/serial |
| 33 | private_key = ./demoCA/private/cakey.pem |
| 34 | new_certs_dir = ./demoCA/newcerts |
| 35 | |
| 36 | certificate = cacert.pem |
| 37 | private_key = cakey.pem |
| 38 | |
| 39 | x509_extensions = v3_user |
| 40 | |
| 41 | name_opt = ca_default # Subject Name options |
| 42 | cert_opt = ca_default # Certificate field options |
| 43 | |
| 44 | policy = policy_anything |
| 45 | |
| 46 | [ policy_anything ] |
| 47 | countryName = optional |
| 48 | stateOrProvinceName = optional |
| 49 | localityName = optional |
| 50 | organizationName = optional |
| 51 | organizationalUnitName = optional |
| 52 | commonName = supplied |
| 53 | emailAddress = optional |
| 54 | |
| 55 | [ v3_user ] |
| 56 | basicConstraints=critical,CA:FALSE |
| 57 | subjectKeyIdentifier=hash |
| 58 | authorityKeyIdentifier=keyid,issuer |
| 59 | issuerAltName=issuer:copy |
| 60 | |