webCOMAND

SSL CLI

The following package functionality is available from the command-line interface (CLI).

  • add - Adds one or more hostnames to the SSL certificate.
  • list - Lists the expiration and hostnames for the server's SSL certificate.
  • remove - Removes hostnames to the SSL certificate.
  • renew - Renews the SSL certificate on this host if it is within 60 days of expiration.
  • update - Update the SSL certificate with all hostnames stored in the webCOMAND repository.

Add

Adds one or more hostnames to the SSL certificate.

Options:

  • -h <hostnames> - The comma separated list of hostnames to add.
  • -d - Debug the changes it will make to the certificate without making them.
php comand.php io_comand_ssl add -h "one.hostname.com, two.hostname.com"

List

Lists the expiration and hostnames for the server's SSL certificate.

php comand.php io_comand_ssl list

Remove

Removes hostnames to the SSL certificate.

Options:

  • -h <hostnames> - The comma separated list of hostnames to remove.
  • -d - Debug the changes it will make to the certificate without making them.
php comand.php io_comand_ssl remove -h "one.hostname.com, two.hostname.com"

Renew

Renews the SSL certificate on this host if it is within 60 days of expiration.

Options:

  • -f - Force the certificate to be renewed, even if not within 60 days of expiration.
php comand.php io_comand_ssl renew

Update

Updates the SSL certificate with all hostnames stored in the webCOMAND repository, within Web Routes and Publications.

Options:

  • -d - Debug the changes it will make to the certificate without making them.
php comand.php io_comand_ssl update