Internal Bitbucket 5.6.1 :: Issues configuring SSL Edited

We are trying to configure SSL for Bitbucket 5.6.1 using the guide at this link and are having some issues. 

We have been granted a cert from our network security team using our internal CA Root.  I am generating the ssl-keystore file by running the following command-

keytool -import -alias tomcat -file CARootFile.crt -keystore ./ssl-keystore -storepass changeit

I have then added the following lines to the bitbucket.properties file-

server.port=8443

server.scheme=https

server.ssl.enabled=true

server.ssl.key-store=/opt/stash-data/shared/config/ssl-keystore

server.ssl.key-store-type=jks

server.ssl.key-alias=tomcat

server.ssl.key-store-password="changeit"

server.ssl.key-password="changeit"

Post service bounce, I receive the attached log output. A notable log entry is-

java.lang.IllegalArgumentException: java.io.IOException: Alias name [tomcat] does not identify a key entry

Interesting thing is when I execute the following-

keytool -list -keystore ./ssl-keystore -storepass changeit

I receive the following-

Keystore type: JKS

Keystore provider: SUN

 

Your keystore contains 1 entry

 

tomcat, Jan 14, 2018, trustedCertEntry,

Certificate fingerprint (SHA1): 92:C5:8A:CC:54:50:42:03:48:9A:3C:60:9C:49:60:53:96:2C:CB:22

 

Any assistance / guidance would be appreciated. Thanks in advance!

1 answer

0 votes

Hey Ayon

 

Could you take a look at the resource below?

https://confluence.atlassian.com/bitbucketserverkb/unable-to-start-tomcat-due-to-java-io-ioexception-alias-name-not-identifying-a-key-entry-943541751.html

As mentioned there, this message refers to an error on the alias name. Try to follow the steps mentioned there in order to set the alias correctly.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Tuesday in Bitbucket

Upgrade Best Practices

Hello! My name is Mark Askew and I am a Premier Support Engineer for products Bitbucket Server/Data Center, Fisheye & Crucible. Today, I want to bring the discussion that Jennifer, Matt, and ...

186 views 3 6
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