跳到主要內容

如何設定spring Boot的 SSL憑證


在安裝spring Boot的工作目錄裡
1. 上傳 .p12格式的憑證到 spring Boot的工作目錄裡的keystore目錄

2. 找到  application.properties 設定檔
加入底下設定
# Server Port
server.port=443
# The format used for the keystore. It could be set to JKS in case it is a JKS file
server.ssl.key-store-type=PKCS12
# The path to the keystore containing the certificate
server.ssl.key-store=keystore/twcassl.p12
# The password used to generate the certificate
server.ssl.key-store-password=[here is yourpassword]
# The alias mapped to the certificate
server.ssl.key-alias=twcassl

參考文件

留言

這個網誌中的熱門文章

基隆望幽谷

基隆望幽谷, 就在八斗子 忘憂谷 , 穿過像宮崎駿風之谷般的山谷, 迎接而來的是藍海、山谷與島嶼, 走在山谷的步道上,你可以遠望基隆嶼與海洋。   https://www.pexels.com/zh-tw/photo/10093017/     https://www.pexels.com/zh-tw/photo/10093006/     https://www.pexels.com/zh-tw/photo/10092822/     https://www.pexels.com/zh-tw/photo/10093057/  
志良辭官 為官權勢利名之, 反覆風雲嘆不如, 媒體今昔竟大異。 是非曲直有誰知? 2010/03/10 09:07 2010/3/8衛生署署長楊 志良因健保費調漲費率與吳敦義不合而辭官