Error message returned by cf cli when creating the service instance:
Unable to create service instance - SSL_connect returned=1 errno=0 state=error: certificate verify failed (certificate has expired)
All versions of the Xenial Stemcell release using Openssl version 1.1.0 could fail if there are two certificates for the same CA where one is expired and one is valid. Depending on which CA cert is processed first will determine the success or failure of the ssl handshake.
Here is a excerpt from the Openssl 1.1.1 man page:
The above passage describes the current behavior of Openssl version 1.1.0 used in the Xenial stemcells. Openssl 1.1.1 is believed to have changed this behavior as per bug-1840767 and we currently do not have any plans to upgrade Openssl in the Xenial stemcell release.
BOSH stemcell version 445.112 or earlier include an old expired root CA "AddTrust_External_Root". and you might experience this issue when upgrading to this stemcell and your load balancer terminates SSL with a cert signed by this root authority.