SSL Setup in Bitbucket not working

karthikeyan ms May 3, 2023

Hi,

 I tried setting up SSL certificate using this link and generate a self signed certificate. 


https://confluence.atlassian.com/bitbucketserver/secure-bitbucket-with-tomcat-using-ssl-776640127.html#:~:text=The%20default%20connection%20for%20Bitbucket,only%20access%20to%20your%20instance.

 

But updating the site is not working and in the logs i can this error. 

 

Caused by: java.io.IOException: Integrity check failed: java.security.NoSuchAlgorithmException: Algorithm HmacPBESHA256 not available
at sun.security.pkcs12.PKCS12KeyStore.engineLoad(PKCS12KeyStore.java:2129)
at java.security.KeyStore.load(KeyStore.java:1445)
at org.apache.tomcat.util.security.KeyStoreUtil.load(KeyStoreUtil.java:69)
at org.apache.tomcat.util.net.SSLUtilBase.getStore(SSLUtilBase.java:217)
at org.apache.tomcat.util.net.SSLHostConfigCertificate.getCertificateKeystore(SSLHostConfigCertificate.java:207)
at org.apache.tomcat.util.net.SSLUtilBase.getKeyManagers(SSLUtilBase.java:283)
at org.apache.tomcat.util.net.SSLUtilBase.createSSLContext(SSLUtilBase.java:247)
at org.apache.tomcat.util.net.AbstractJsseEndpoint.createSSLContext(AbstractJsseEndpoint.java:105)
... 33 more
Caused by: java.security.NoSuchAlgorithmException: Algorithm HmacPBESHA256 not available
at javax.crypto.Mac.getInstance(Mac.java:181)
at sun.security.pkcs12.PKCS12KeyStore.engineLoad(PKCS12KeyStore.java:2107)
... 40 more

 

Regards,

Karthik 

1 answer

0 votes
Baskar Annamalai June 20, 2023

Hi Karthikeyan,

The likely cause of this error is that the Java version the app is built with is different from the Java version being used to generate the signing key. Please refer to the supported Java platform for Bitbucket - https://confluence.atlassian.com/bitbucketserver/supported-platforms-776640981.html#Supportedplatforms-javaJava

Best regards,
Baskar Annamalai
ServiceRocket.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events