edjx domain tls add

Adds a certificate-private key pair to enable TLS for a provided domain.

edjx domain tls add <name> <private-key-path> <chain-path> <certificate-path> [flags]


name                            Set the name of the certificate
private-key-path                A valid X.509 Certificate. You can copy and paste this content from the certificate .pem file.
chain-path                      The intermediate Certificates up to the root Certificate
certificate-path                Contains the secret key of the certificate, which will be used by the Web server when it makes an SSL/TLS connection


-d, --domain <domain-id>        Optional. Domain ID (default 00000000-0000-0000-0000-000000000000)


root@edjx:~ # edjx domain tls add priv.key cert.pem cert.pem
If you get an error message stating that the domain does not exist, use the edjx config domain -i command.