Page History
...
The following files will be created when executing the script:
<ca>/certs/root-ca.crt
<ca>/csr/root-ca.csr
<ca>/private/root-ca.key
...
Code Block | ||||
---|---|---|---|---|
| ||||
# Description # create_root_ca.sh --key-name=<basename> --subject=<distinguished-name> --days=<number-of-days> # Example: for runuse with defaults ./create_root_ca.sh # Example: for use with basename such as ca-root.key, ca-root.crt, ca-root.csr ./create_root_ca.sh --key-name=ca-root # Example: applyapplying specific distinguished name and lifetime ./create_root_ca.sh --subject="/C=DE/ST=Berlin/L=Berlin/O=SOS/OU=IT/CN=JS7 CA" --days=7660 |
The shell script is optionally executed optionally with the following arguments:
--key-name
- The basename of the key without extension. Default:
root-ca
- The basename of the key without extension. Default:
--subject
- The distinguished name that is used as the subject of the CA Certificate. Default:
/C=DE/ST=Berlin/L=Berlin/O=SOS/OU=IT/CN=Root CA
- The distinguished name that is used as the subject of the CA Certificate. Default:
--days
- The lifetime of the certificate is specified by the number of days. Default:
7305
- Consider
--days
- The lifetime of the certificate is specified by the number of days. Default:
7305
- Consider that Server Certificates have to be renewed if the Root CA Certificate expires.
- The lifetime of the certificate is specified by the number of days. Default:
...
<ca>/certs/<server>.crt
<ca>/certscsr/<server>.csr
<ca>/private/<server>.key
...
Code Block | ||||
---|---|---|---|---|
| ||||
# Description # create_certificate.sh --dns=<server-hostname><hostname>[,<server-hostname><hostname>] --key-daysname=<number<basename> -of-days> -subject=<distinguished-name> --days=<number-of-days> # Example for use with DNS and lifetime ./create_certificate.sh --dns=apmaccs,apmaccs.soscentostest-primary --days=365 |
The shell script is executed with two arguments:
# Example for use with DNS, key name and lifetime
./create_certificate.sh --dns=centostest-primary,centostest-primary.sos --key-name=centostest-primary --days=4017
# Example for use with DNS, subject and lifetime
./create_certificate.sh --dns=centostest-primary,centostest-primary.sos --subject="/C=DE/ST=Berlin/L=Berlin/O=SOS/OU=IT/CN=centostest-primary.sos" --days=4017 |
The shell script is executed with two arguments:
--dns
- The DNS hostname of the server that should be assigned the certificate. A server can be assigned more than one DNS hostname, for example the FQDN can extend the hostname. Only DNS hostnames that are added to the certificate can be used later on to establish secure HTTPS connections.
--key-name
- The basename of the key without extension. Default:
root-ca
- The basename of the key without extension. Default:
--subject
- The distinguished name that is used as the subject of the Server Certificate. Default:
/C=DE/ST=Berlin/L=Berlin/O=SOS/OU=IT/CN=<dns>
- The
CN
attribute must specify the server's hostname. By default the value of the first hostname specified with the--dns
option is used
--dns
- The DNS hostname of the server that should be assigned the certificate. A server can be assigned more than one DNS hostname, for example the FQDN can extend the hostname. Only DNS hostnames that are added to the certificate can be used later on to establish secure HTTPS connections.
- The distinguished name that is used as the subject of the Server Certificate. Default:
--days
- The lifetime of the certificate is specified by the number of days (default: 5475, matching approx. 15 years).. Default:
3652
- The lifetime of the certificate is specified by the number of days (default: 5475, matching approx. 15 years).. Default:
Links
- JS7 - How to add SSL TLS Certificates to Keystore and Truststore
- JS7 - How to create X.509 Signing Certificates
...
Overview
Content Tools