Can't get SSL working on Bitbucket 5.5.0 (CentOS 7.x)

I have a generate a Java keystore that contains a purchased wildcard certificate for my domain.  I have been able to properly apply this keystore to my JIRA and Confluence server, but I'm having no such luck getting Bitbucket to properly recognize it.   The keystore is in pkcs12 format, and the entries in my bitbucket.properties config file are as follows:

server.port=8888
server.ssl.enabled=true
server.ssl.key-store=/etc/pki/tls/keystore/bitbucket.jks
server.ssl.key-store-password=<password for my keystore>
server.ssl.protocol=TLSv1.2
server.ssl.key-store-type=pkcs12

Yet when I attempt to launch Bitbucket, I get the following error in the atlassian-bitbucket.log:

***************************
APPLICATION FAILED TO START
***************************

Description:

The Tomcat connector configured to listen on port 8888 failed to start. The port may already be in use or the connector may be misconfigured.

Action:

Verify the connector's configuration, identify and stop any process that's liste ning on port 8888, or configure this application to listen on another port.

 

There are no other services running on this host that would be taking port 8888, so I'm pretty sure this is a config file issue but I have no clue what items in the config file are either wrong or missing.

Any ideas?

1 answer

Hi,

Try removing the server.port configuration. It should default to the port being used in server.xml. If 8888 is used in the server.xml then that may cause it to think it's already in use.

Also add .. for SSL

server.scheme=https
server.proxy-port=443
server.proxy-name=bitbucket.example.com

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 12, 2018 in Bitbucket

Do you use any Atlassian products for your personal projects?

After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...

23,885 views 26 12
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you