Logo

Command Palette

Search for a command to run...

stacks ssl

Add an SSL certificate to a stack.

$ cx stacks ssl --stack <application name> --type <certificate type> --domain <domain name> --ssl-termination --cert <certificate file> --key <SSL key file> --intermediate <intermediate cert file> --overwrite

Options

ArgumentRequired?DefaultDescription
--stack, -s <application name>yesThe application name
--type <certificate type>yesThe type of certificate (lets_encrypt or manual)
--domain <domain name>Depends on --typeDomain name applicable to this SSL certificate (required for lets_encrypt, optional for manual). Repeatable for multiple domains
--ssl-terminationnoEnable SSL termination
--cert <certificate file>Depends on --typeSSL certificate file path (required for manual)
--key <SSL key file>Depends on --typeSSL key file path (required for manual)
--intermediate <intermediate cert file>noSSL intermediate certificate file path
--overwriteyes, if cert already existsRequired confirmation flag to update an existing SSL certificate

Examples

$ cx stacks ssl add -s my-stack --type lets_encrypt --domain 'web.domain.com' --domain 'api.domain.com' --overwrite

$ cx stacks ssl add -s my-stack --type manual --cert /certs/my_certificate --key /ssl/my_key --intermediate /certs/my_intermediate_cert