[DevOps] 在BitBucket 中加入SSL 設定

Bitbucket 是一套用implement 了git 的Source Code Management (SCM) 方案. 要設定SSL 方法如下.

  1. 檢查keystore內cert alias.
    於command prompt 中, 輸入以下指令:

    keytool -list -keystore <<KeyStore_File_Path>>.pfx -v
  2. 加入keystore cert 中內容.
    在%BITBUCKET_ROOT%\ApplicationData\BitBucket\shared\config\bitbucket.properties 中, 修改內容如下.

    server.port=8443
    server.ssl.enabled=true
    server.ssl.key-store=${bitbucket.shared.home}/config/ssl-keystore/keystore.pfx
    server.ssl.key-store-type=PKCS12
    server.ssl.key-store-password=password
    server.ssl.key-alias={259fdc8b-a0f9-41b5-b280-a3602fae19bb}
    server.ssl.key-password=password
  3. 重新啟動BitBucket
About C.H. Ling 262 Articles
a .net / Java developer from Hong Kong and currently located in United Kingdom. Thanks for Google because it solve many technical problems so I build this blog as return. Besides coding and trying advance technology, hiking and traveling is other favorite to me, so I will write down something what I see and what I feel during it. Happy reading!!!

Be the first to comment

Leave a Reply

Your email address will not be published.


*


This site uses Akismet to reduce spam. Learn how your comment data is processed.