|
| 1 | +[ ca ] |
| 2 | +default_ca = mypersonalca |
| 3 | + |
| 4 | +[ mypersonalca ] |
| 5 | +# |
| 6 | +# WARNING: if you change that, change the default_keyfile in the [req] section below too |
| 7 | +# Where everything is kept |
| 8 | +dir = C:/OpenSSL-Win32/CA |
| 9 | + |
| 10 | +# Where the issued certs are kept |
| 11 | +certs = $dir/certs |
| 12 | + |
| 13 | +# Where the issued crl are kept |
| 14 | +crl_dir = $dir/crl |
| 15 | + |
| 16 | +# database index file |
| 17 | +database = $dir/index.txt |
| 18 | + |
| 19 | +# default place for new certs |
| 20 | +new_certs_dir = $dir/certs |
| 21 | + |
| 22 | +# |
| 23 | +# The CA certificate |
| 24 | +certificate = $dir/certs/ca.pem |
| 25 | + |
| 26 | +# The current serial number |
| 27 | +serial = $dir/serial |
| 28 | + |
| 29 | +# The current CRL |
| 30 | +crl = $dir/crl/crl.pem |
| 31 | + |
| 32 | +# WARNING: if you change that, change the default_keyfile in the [req] section below too |
| 33 | +# The private key |
| 34 | +private_key = $dir/private/ca.key |
| 35 | + |
| 36 | +# private random number file |
| 37 | +RANDFILE = $dir/private/.rand |
| 38 | + |
| 39 | +# The extentions to add to the cert |
| 40 | +x509_extensions = usr_cert |
| 41 | + |
| 42 | +# how long to certify for |
| 43 | +default_days = 3650 |
| 44 | + |
| 45 | +# how long before next CRL |
| 46 | +default_crl_days= 30 |
| 47 | + |
| 48 | +# which md to use; people in comments indicated to use sha1 here |
| 49 | +default_md = sha1 |
| 50 | + |
| 51 | +# keep passed DN ordering |
| 52 | +preserve = no |
| 53 | + |
| 54 | +# Section names |
| 55 | +policy = mypolicy |
| 56 | +x509_extensions = certificate_extensions |
| 57 | + |
| 58 | +[ mypolicy ] |
| 59 | +# Use the supplied information |
| 60 | +commonName = supplied |
| 61 | +stateOrProvinceName = supplied |
| 62 | +countryName = supplied |
| 63 | +emailAddress = supplied |
| 64 | +organizationName = supplied |
| 65 | +organizationalUnitName = optional |
| 66 | + |
| 67 | +[ certificate_extensions ] |
| 68 | +# The signed certificate cannot be used as CA |
| 69 | +basicConstraints = CA:false |
| 70 | + |
| 71 | +[ req ] |
| 72 | +# same as private_key |
| 73 | +default_keyfile = C:\OpenSSL-Win32\CA\private\ca.key |
| 74 | + |
| 75 | +# Which hash to use |
| 76 | +default_md = sha1 |
| 77 | + |
| 78 | +# No prompts |
| 79 | +prompt = no |
| 80 | + |
| 81 | +# This is for CA |
| 82 | +subjectKeyIdentifier=hash |
| 83 | +authorityKeyIdentifier=keyid:always,issuer |
| 84 | +string_mask = utf8only |
| 85 | +basicConstraints = CA:true |
| 86 | +distinguished_name = root_ca_distinguished_name |
| 87 | +x509_extensions = root_ca_extensions |
| 88 | + |
| 89 | +[ root_ca_distinguished_name ] |
| 90 | +# EDIT THOSE |
| 91 | +commonName = WinRM CA |
| 92 | +stateOrProvinceName = Washington |
| 93 | +countryName = US |
| 94 | + |
| 95 | +organizationName = WinRM CA |
| 96 | + |
| 97 | +[ root_ca_extensions ] |
| 98 | +basicConstraints = CA:true |
| 99 | + |
| 100 | +[v3_req_server] |
| 101 | +extendedKeyUsage = serverAuth |
| 102 | + |
0 commit comments