Hi everyone,
I'm currently evaluating how the Bitbucket Data Center mirror works, so that we can then order a license for our company, but it seems all attempts to get it to work have failed.
Both the main server [https://192.168.140.137:8443] and the mirror [https://192.168.140.138:8443] are running under Ubuntu 20.04, are now using HTTPS and the ssl-keystores are available on both.
I'm using self-signed certificates on both the server and the mirror and I imported them into 2 keystores on the mirror and server respectively, with these commands:
keytool -import -alias $alias -trustcacerts -file file.pem -keystore /var/atlassian/application-data/bitbucket/shared/config/ssl-keystore
AND
keytool -import -alias $alias -trustcacerts -file file.pem -keystore /opt/atlassian/bitbucket/7.6.0/jre/lib/security/cacerts
The main server is running properly.
Before starting the mirror service (systemctl start atlbitbucket), I've edited the bitbucket.properties file manually to switch to https (according to Bitbucket documentation) and to point to the generated keystore.
However, the mirror doesn't connect with the main server and there is this error message in the log:
*****************************************
"... java.security.SignatureException: Signature does not match ..."
*****************************************
Any idea where to start debugging this?
Thank you.
Ok, problem solved in the meantime by first exporting the certificates on primary and mirror with this command from ssl-keystore:
keytool -export -alias $alias -keystore $keystore -rfc -file certificate.cert
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.