Page tree
Skip to end of metadata
Go to start of metadata

'Check HTTPS Certificate' is a very simple addon to check expiration date of your HTTPS certificate. Just drop 'Cert Validity' macro to your Confluence page and you will see something similar to:

 

 

You can specify port number in your macro settings, if your server is running on something different than standard https port 443.

 

You may also use REST API to get check results as JSON:

$ curl -u <user>:<password> -X GET http(s)://<your confluence base>/rest/check-cert/1.0/cert/notAfter\?host=www.google.com
{"expires":"Wed Sep 20 12:27:00 MSK 2017","days":69}

 

If your certificate expiration date is more than one week ahead, the macro background will be green; if more than three days – yellow; if three days or less (or already expired) – red.

Hope you find it useful.

Your Rating: Results: PatheticBadOKGoodOutstanding! 2 rates

Legal notice

This addon is free under MIT license

Source code is available on GitHub 

  • No labels