Secure site
The site:secure command allows you to secure a site with an SSL certificate.
ploi site:secure
Secure a specific site with Let's Encrypt:
ploi site:secure --server=blue-ocean --site=example.com
Secure with a custom certificate:
ploi site:secure --server=blue-ocean --site=example.com --custom --domains=example.com,www.example.com --private=/path/to/private.key
Options
| Option | Description |
|---|---|
--server= | The server name or ID |
--site= | The site domain to secure |
--force | Force certificate installation |
--custom | Use a custom certificate instead of Let's Encrypt |
--domains= | Domain(s) to secure (comma-separated) |
--private= | Path to private key for custom certificates |
Certificate Types
By default, the command uses Let's Encrypt to automatically provision a free SSL certificate. For custom certificates, use the --custom flag along with your certificate and private key.
The command will poll the certificate status until installation completes or fails.