software:openssl:createca
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
software:openssl:createca [2025/10/19 03:47] – rodolico | software:openssl:createca [2025/10/19 03:55] (current) – rodolico | ||
---|---|---|---|
Line 64: | Line 64: | ||
==== Create a configuration file ==== | ==== Create a configuration file ==== | ||
- | By creating a configuration file, you can bypass a lot of redundant questions and answers when generationg | + | By creating a configuration file, you can bypass a lot of redundant questions and answers when generating |
- | + | ||
- | <code conf> | + | |
+ | <code conf openssl.cnf> | ||
# this section is for requests | # this section is for requests | ||
[ req ] | [ req ] | ||
Line 89: | Line 88: | ||
# used when generating certificate of authorities (ca) | # used when generating certificate of authorities (ca) | ||
[ v3_ca ] | [ v3_ca ] | ||
- | |||
subjectKeyIdentifier=hash | subjectKeyIdentifier=hash | ||
authorityKeyIdentifier=keyid: | authorityKeyIdentifier=keyid: | ||
basicConstraints = critical, CA:true | basicConstraints = critical, CA:true | ||
- | |||
- | |||
- | |||
- | |||
- | -reqexts v3_ca | ||
</ | </ | ||
Line 128: | Line 121: | ||
* //-out// - name of the output file. | * //-out// - name of the output file. | ||
+ | ==== Modify openssl.cnf ==== | ||
+ | <code conf> | ||
+ | [ ca ] | ||
+ | default_ca = CA_default | ||
- | Country Name (2 letter code) [AU]:US | + | [ CA_default |
- | State or Province Name (full name) [Some-State]: | + | dir = ./ |
- | Locality Name (eg, city) []:Dallas | + | database |
- | Organization Name (eg, company) [Internet Widgits Pty Ltd]:Daily Data | + | new_certs_dir |
- | Organizational Unit Name (eg, section) []:Home Office | + | certificate |
- | Common Name (e.g. server FQDN or YOUR name) []:Rod | + | private_key |
- | Email Address []: | + | default_md |
+ | preserve | ||
+ | policy | ||
+ | [ policy_any ] | ||
+ | countryName | ||
+ | stateOrProvinceName | ||
+ | organizationName | ||
+ | organizationalUnitName | ||
+ | commonName | ||
+ | emailAddress | ||
+ | </ |
software/openssl/createca.1760863649.txt.gz · Last modified: 2025/10/19 03:47 by rodolico