Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

How to import a new SSL certificate?

Dear Support,


How do I import a new certificate in Bitbucket? I have a on-premise server which uses tomcat and an ssl-keystore.

I have a new crt & key files from QuoVadis but I don't know what to do with it.

Following the instructions in the following kb, I receive the following error when trying to import the new crt into the keystore. Which seems to indicate that the certificate wasn't generated by the csr file.


keytool -import -alias tomcat -file "NEW Certificate" -keystore "DIR keystore"


"keytool error: java.lang.Exception: Certificate reply does not contain public key for <tomcat>"


reference: Secure Bitbucket with Tomcat using SSL | Bitbucket Data Center and Server 7.14 | Atlassian Documentation

Any help would be much appreciated as I've struggling with this for a while and technical teams are using a workaround.


Many thanks,




1 answer

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Confluence

Confluence: Where work and wellness meet

Feeling overwhelmed by the demands of work and life? With a 25% increase in the prevalence of anxiety and depression worldwide during the pandemic, for most of us, it’s a resounding yes . 🙋‍♀️ ...

1,054 views 19 29
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you