Skip to main content
Version: 2.4.7

certificate Command

The certificate command is used to create a new TLS certificate and key pair based on the internal root CA certificate. This can be used to create a self-signed certificate for additional components that communicate with Resoto.

Usage

certificate create --common-name <common-name>
[--dns-names <dns-name>...<dns-name>]
[--ip-addresses <ip-address>...<ip-address>]
[--days-valid <days-valid>]

Options

OptionDescriptionRequired?Default Value
--common-nameServer name protected by the ssl certificate.✔️
--dns-namesDNS names that the certificate should be valid for.
--ip-addressesIP addresses that the certificate should be valid for.
--days-validNumber of days the certificate should be valid.365

Examples

Chunking with size of 2
> certificate create --common-name example.com --dns-names example.com *.example.com --days-valid 365
​Received a file example.com.key, which is stored to ./example.com.key.
​Received a file example.com.crt, which is stored to ./example.com.crt.

Further Reading