Unable to get SSL to work in version 5.6

BarneyB I'm New Here Dec 05, 2017

Hi

we are running version 5.6, and have a valid .jks file completed.

The bitbucket.properties config for our setup to enable SSL is :

 

server.port=443
server.ssl.enabled=true
server.ssl.key-alias=xxxxxxx (hidden for sec)
#server.ssl.key-store=D:\Atlassian\ApplicationData\Bitbucket\shared\config\ssl-keystore\bitbucket.jks
server.ssl.key-store-password=xxxxx(hidden for sec)
server.ssl.key-password=xxxxxx(hidden for sec)

 

Nice and simple. No. The service fails to start as soon as we enable SSL. In the logs it complains that a port is already in use, which is a false positive as this is not the case as its a standalone server. The logs also states the location for key-store is not the applied one above :

\Atlassian\Bitbucket\5.6.0\app\AtlassianApplicationDataBitbucketsharedconfigssl-keystore (The system cannot find the file specified)

In my mind, the system is not looking for the actual key-file stated above but Im not sure of anything at this stage.

Any help on this would be great as its delaying our deployment to live status.

 

Many thanks in advance.

Barney

 

 

1 answer

0 vote

Hi Barney

Sorry to hear you're having issues with setting the HTTPS.

The issue here is that the SpringBoot (the framework used to build Bitbucket since version 5.x) asks to have the path with forward / instead of \ even on Windows.

So in bitbucket.properties you should change the path following way:

server.ssl.key-store=D:/Atlassian/ApplicationData/Bitbucket/shared/config/ssl-keystore/bitbucket.jks

 And then restart the instance. After the restart, the HTTPS should work correctly.

Regards,

Anton

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
Published Monday in Jira Software

How large do you think Jira Software can grow?

Hi Atlassian Community! My name is Shana, and I’m on the Jira Software team. One of the many reasons this Community exists is to connect you to others on similar product journeys or with comparabl...

597 views 6 12
Read article

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