SSL证书路径配置:
1、打包到resouce下:
java
server:
port: 443
ssl:
enabled: true
key-store: classpath:XX.XX.com.p12
key-store-password: your-password
keyStoreType: PKCS12
keyAlias: your-alias
2、放到windows类型服务器硬盘上
Windows系统中,由于路径分隔符使用反斜杠\,而在配置文件中反斜杠通常需要转义
java
server:
port: 443
ssl:
enabled: true
key-store: file:///D:/yourpath/xx.xx.com.p12
key-store-password: your-password
keyStoreType: PKCS12
keyAlias: your-alias
3、放到linux类型服务器硬盘上
java
server:
port: 443
ssl:
enabled: true
key-store: file:///absolute/path/to/xx.xx.com.p12
key-store-password: your-password
keyStoreType: PKCS12
keyAlias: your-alias