In order to rotate only the Tanzu GemFire for VMs certificates when you do not want to or should not rotate the services/tls_ca certificate, follow these steps:
sh ubuntu@<opsman-url-or-IP>
export BOSH_CLIENT=ops_manager BOSH_CLIENT_SECRET=<redacted> BOSH_CA_CERT=/var/tempest/workspaces/default/root_ca_certificate BOSH_ENVIRONMENT=<redacted>
export CREDHUB_CLIENT=$BOSH_CLIENT CREDHUB_SECRET=$BOSH_CLIENT_SECRET
Target the Credhub API and log in:
credhub api -s $BOSH_ENVIRONMENT:8844 --ca-cert $BOSH_CA_CERT credhub login
credhub get -n /services/tls_ca -j | jq -r .value.ca \ | openssl x509 -text -noout | grep -A 2 "Validity"
credhub curl -p /api/v1/certificates | jq -r ‘.certificates[] | select(.signed_by==“/services/tls_ca”) | .name’ to check the certs generated by service/tls_ca
credhub regenerate -n /p-bosh/service-instance_guid/gemfire-(locator/server)-certificate
credhub curl -p 'api/v1/data?path=/p-bosh&expires-within-days=number_of_days'
bosh -d <pcc deployment> run-errand upgrade-all-service-instance errand