Endevor Bridge for Git failed to start with Bind Exception, using BitBucket as the Git Server.
Release : 18.1
Endevor Bridge for Git 2.12.5
Must create an application link in Bitbucket that connects to Bridge for Git before starting Bridge for Git application.
To setup SSL in B4G:
Copy the keystore in the machine bridge will be running and fill in application.yml with the following parameters :
# The format used for the keystore. It could be set to JKS in case it is a JKS file
server.ssl.key-store-type: JKS
# The path to the keystore containing the certificate
server.ssl.key-store: <path/keystore.jks>
#The password used to generate the certificate
server.ssl.key-store-password: <your_password>
# The alias mapped to the certificate
server.ssl.key-alias: <alias>
Follow Atlassian Document to create RSA key pair:
openssl genrsa -out privkey.pem 2048
openssl rsa -pubout -in privkey.pem -out pubkey.pem
Open the pubkey.pem in a text editor and you should see something like this:
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA0V9TqNeo/qzyI3T10qJw
iNiej6bPHOfDlqUPppPaUAPQNkSYdscfgkoMDsaw39+vh3tW3rczi6F5bFJ/cD3s
TUwuMxeNFFkm94T6kIztAbS97c9489qNsqg17B83DDFjuxLRpr082dPLZ8H6v4W1
afEWDcmafRi/HiSOTH4M5tzaLsOJt8wU26LNAVo2EE50oxnFOATpBetfaqxjyBZj
TQREjTtBYSXQU9SnNnZ5Ti27RdLkXLAYcEdI8pAr9Hp+BfK3JK/dx7a6Rtid54E9
COWxg0HfOcZRNQX6VBypVfTuY++AQegZ74lVrhg3nVJsWX+e9VwVU58rjqwd1lGH
NwIDAQAB
Copy and paste the content of the RSA public key (pubkey.pem) to Bitbucket application link public key field.
In Application.yml:
bitbucket:
# Bitbucket Server URL (e.g: http://bitbucket.example.net)
url: <bitbucket_server_url>
# Open authentication properties
oauth:
# Consumer Key from OAuth Application Link
consumer-key: <consumer_key> << value of consumer_key must match consumer_key in BitBucket application link
# Location of your private key file, corresponding public key is set in OAuth Application Link
private-key: <path/to/private/key.pem> <<private key from the same RSA key pair with the public key in BitBucket application link