Monitoring Cert and CA expiry on LTS1 Deployments

There are 3 categories of certificates and their CAs on a Platform9 Edge Cloud Deployment, each with different expiry times. This document covers how these CAs and certs can be monitored for expiry as well as manual steps to either regenerate the CA or ensure that the generated certs continue to be valid.

Monitoring Certs

Monitoring Hostagent CA and Certs

  1. ssh to DU VM (192.168.120.254) from DU host.

  2. cd /etc/pf9/certs

  3. There can be v[1-9] directories created here as part of the upgrade process (so, cd to the latest v* dir). If you don't see a v* directory, it implies that the cert version is v0, and these certs are present in the above directory itself. Within each cert version, you should see a ca/ directory as well as a hostagent/ directory.

  4. To check the CA expiry, go into ca/ directory and run openssl x509 -in cert.pem -noout -startdate -enddate

  5. To check the hostagent certs expiry, go into hostagent/ directory and run openssl x509 -in cert.pem -noout -startdate -enddate

If you observe that the CA or certs are expiring, please following the manual steps mentioned in the below article to regenerate them: https://platform9.com/kb/PEC/how-to-regenerate-certs-if-hostagent-certificates-have-expiredarrow-up-right

Monitoring Sunpike CA and Certs

ssh to DU VM (192.168.120.254) and run the below steps:

sudo su
export VAULT_TOKEN=$(mysql qbert -Bse "SELECT credential_value FROM qbert_secrets where credential_name='root_token'")
export VAULT_ADDR=http://127.0.0.1:8200
/usr/local/bin/vault read pki/cert/ca -format=json | jq -r '.data.certificate'| openssl x509 -noout -dates

# TTL 

/usr/local/bin/vault read pki/roles/sunpike | grep ttl

If you observe that the Sunpike CA is expiring, please follow the manual steps mentioned in the following article to regenerate it: https://platform9.com/kb/PEC/refresh-sunpike-caarrow-up-right

To check the sunpike-kube-apiserver certificate expiry:

Monitoring Cluster CA and Certs

ssh to DU VM (192.168.120.254) and run the below steps:

This outputs the date on which the CA is created and the date on which it expires, per cluster. If you observe that the certs are expiring, please follow the manual steps mentioned in the following article to regenerate it: https://platform9.com/kb/PEC/refresh-cluster-caarrow-up-right

Last updated