How to Check the Sunpike and Cluster Certificate Details?

Problem

  • How to Check the Sunpike and Cluster Certificate Details in LTS1 setup.

Environment

  • Platform9 Edge Cloud - v-5.3.

Procedure

Sunpike Certificates

  • Use below mentioned steps to check the TTL value of Sunpike CA.

# 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/roles/sunpike | grep ttl
max_ttl                               8760h ttl
  • Use below mentioned steps to check the certificate of Sunpike:

vault read pki/cert/ca -format=json | jq -r '.data.certificate'
  • Use below mentioned steps to check the certificate of Sunpike:

# docker exec -ti sunpike-kube-apiserver /bin/bash
# curl -kv https://127.0.0.1:6443

Cluster Certificates

  • Use below mentioned steps to check the TTL value of Cluster CA.

  • Use below mentioned steps to check the certificate of Sunpike:

  • To know the current cluster certificate expiry you can try below steps:

Last updated