acs-admin-procs.tcl

Automated functions for acs-admin

Location:
packages/acs-admin/tcl/acs-admin-procs.tcl
Created:
2018-08-15
Author:
Gustaf Neumann

Procedures in this file

Detailed information

acs_admin::check_expired_certificates (private)

 acs_admin::check_expired_certificates [ -api api ] \
    [ -key_type key_type ]

Check expire-dates of certificates and send warning emails to the admin. In case HTTPS is not configured via the "nsssl" driver, or the command line tool "openssl" is not installed, the proc does nothing.

Switches:
-api (optional, defaults to "production")
possible values: "production" or "staging". In case the certificate is expired, use this type of letsencrypt environment to obtain a fresh certificate.
-key_type (optional, defaults to "ecdsa")
possible values: "rsa" or "ecdsa".
Returns:
boolean telling whether expired certificates existed (true) or not (false)

Testcases:
acs_admin_check_expired_certificates

acs_admin::posture_status (private)

 acs_admin::posture_status -current_location current_location -url url

return information about the posture status of the provided URL.

Switches:
-current_location (required)
-url (required)
Returns:
dict containing status, diagnosis, and package_id

Testcases:
No testcase defined.
[ show source ]