Using Bitbucket 5.4.0. I'm trying to configure a webhook to a Jenkins server that is running SSL on port 443. The webhook fails with this error:
javax.net.ssl.SSLHandshakeException: General SSLEngine problem
After turning on debug level logging I can clearly see it's because the certificate is not trusted. I have already imported the Jenkins server's cert into the Bitbucket keystore and trusted it. I have also installed and trusted the intermediate and root CA certificates. I even went so far as to test the java keystore to verify all the certs were properly installed (in the proper order) in the Bitbucket keystore. I tested using the SSLPoke utility. Everything passes. This should work.
The bitbucket.properties file references the location of the java keystore. The password to the keystore is correct. I'm at a loss as to why Bitbucket does not trust the cert. Bitbucket is either not using the keystore as configured or there really is a problem with the keystore. Is there some other utility I can use to verify the keystore? Is there a way to verify Bitbucket is using the configured keystore?