BOSH DNS CA/leaf certificate can be automatically rotated by enabling "Enable automatic rotation of the BOSH DNS CA certificate" in Director Config. The rotated BOSH DNS certificates can be deployed to VMs during the Apply Changes action when new stemcells are also being deployed to those VMs. Please refer product document for details.
In the case that above feature is not enabled and the certificate is not rotated manually before expiration, this article will describe how to rotate BOSH DNS CA certificate when it already expired.
Before BOSH DNS CA expiration, it could be manually - Rotate a single CA and its leaf certificates with Credhub maestro. However in the case CA has already expired, step 1~4 have to be merged as:
Above deployment may fail with tile or service instance deployments, because some drain scripts relies on BOSH-DNS, but it already stops functioning. In this case, please rerun the deployment manually with --skip-drain.
Repeat above steps until new BOSH DNS CA and leaf certificates are deployed on all instances.
Finally, clean up old expired BOSH DNS CA