K8s/Openshift - Certificate Management Guide
Checking Certificate Validity
In order to check the validity and expiration date of certificates, execute the following script inside the vid-maintenance pod:
python3 /scripts/check_certificates.py
Renewing Interservice Certificates (websec - adservice, websec - OPA)
To renew interservice certificates, open a terminal in the vid-maintenance pod and run:
bash /scripts/renew-interservice-certificates.sh
# Verify the new expiration date:
# Run the following script and check the output for 'tomcat-keystore'
python3 /scripts/check_certificates.py
Certificate validity is defined in config.json (.clientCert.validityDays.default)
The affected pods will be restarted automatically.
Renewing Cassandra Internode and Client Certificates
To renew Cassandra internode and client certificates, follow these steps:
Inside the
vid-maintenancePod:CODEbash /scripts/renew-cassandra-certificates.sh # Verify the new expiration date: # Run the following script and check the output for 'cassandra-keystore' and 'cassandra-client' python3 /scripts/check_certificates.pyCertificate validity is defined in config.json (.clientCert.validityDays.default)
From the Operator Machine:
Restart the Cassandra pods to apply the changes:
CODEoc -n $NAMESPACE rollout restart statefulset <STATEFULSET_NAME>
Renewing Elasticsearch & Kibana Client Certificates
The ECK Operator manages Elasticsearch and Kibana client certificates using the CA certificate stored in the
vid-ca-certsecret.
The certificate validity is configured in eck-operator-values.yaml under config.certificatesValidity, and is specified in hours (e.g., 24h). To apply any changes, update the values file and upgrade the ECK Operator Helm chart.
To renew the certificates:
Delete the following secrets:
elasticsearch-dev-es-http-certs-internalkibana-elasticsearch-dev-kb-http-certs-internal
Wait approximately one minute for the new certificates to be applied.
Service restart is NOT required.
Verify the new expiration date:
CODE# Run the following script and check the output for 'elasticsearch-client' and 'kibana-client' python3 /scripts/check_certificates.py