You may need to Regenerate the BOSH Director SSL Certificate for a variety of reasons. These reasons may include, but are not limited to, the following:
Follow the instructions below to regenerate the BOSH Director SSL Certificate that is installed with BOSH:
From a terminal window that is SSH'd into the Operations Manager (Ops Manager) VM, perform the following steps:
uaac target https://<opsmanagerurl>/uaa to specify your UAA CLI target (Your Operations Manager UAA).uaac token owner get to authenticate your token and get your token so it can be used by UAAC.opsman<Leave Blank><Username to log into OpsManager><Password to log into OpsManager>Alternatively, if Ops Manager has been configured with SAML, perform the following:
uaac target https://<opsmanagerurl>/uaa to specify your UAA CLI target (Your Ops Man UAA).uaac token sso get to authenticate and get your token from your SSO service so it can be used by the UAAC.opsman<Leave Blank>https://<opsmanagerurl>/uaa/passcode>If successful, you will get a message stating: Successfully fetched token via owner password grant.
After receiving the message above, perform the following steps:
uaac context to display the users and the applications authorized by the UAA server, and the permissions granted to each user and application.access_tokenforclient_id: opsman.curl "https://opsmanagerurl/api/installation_settings" -X GET -H "Authorization: Bearer <ACCESS_TOKEN>".GET request into a file and open it for editing. This is easily done by adding > settings.txt at the end of the curl command. director_ssl and delete the whole thing. That section will contain something similar to this:
"director_ssl": {
"private_key_pem": "-----BEGIN RSA PRIVATE KEY-----
...
-----END RSA PRIVATE KEY-----\n",
"cert_pem": "-----BEGIN CERTIFICATE-----
...
-----END CERTIFICATE-----\n" },
"director_ssl": to \n-----END CERTIFICATE-----\n" }, Save the file.curl "https://opsmanagerurl/api/installation_settings" -X POST -H "Authorization: Bearer <ACCESS_TOKEN>" -F installation[file]=@path/to/file.@ so that the curl command picks up the file without the director_ssl.{}.uaac target, you may need to use the --skip-ssl-validation flag.curl "https://opsmanagerurl/api/installation_settings" -X GET -H "Authorization: Bearer <ACCESS_TOKEN>", you may need to use the -k flag.