Spring boot SSL证书路径配置

SSL证书路径配置:

1、打包到resouce下:

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系统中,由于路径分隔符使用反斜杠\,而在配置文件中反斜杠通常需要转义

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类型服务器硬盘上

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

相关推荐

  1. Spring boot SSL证书路径配置

    2024-06-09 17:32:02       19 阅读
  2. SpringBootSQL监控

    2024-06-09 17:32:02       33 阅读
  3. Tomcat配置ssl证书

    2024-06-09 17:32:02       38 阅读
  4. nignx配置https证书

    2024-06-09 17:32:02       26 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-06-09 17:32:02       5 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-06-09 17:32:02       5 阅读
  3. 在Django里面运行非项目文件

    2024-06-09 17:32:02       4 阅读
  4. Python语言-面向对象

    2024-06-09 17:32:02       7 阅读

热门阅读

  1. MyBatis 延迟加载,一级缓存,二级缓存设置

    2024-06-09 17:32:02       22 阅读
  2. 在 Linux 系统上安装 Android NDK

    2024-06-09 17:32:02       21 阅读
  3. Redis的哨兵机制,一文全解

    2024-06-09 17:32:02       13 阅读
  4. 07.组件间通信-provide-inject(祖孙通信)

    2024-06-09 17:32:02       24 阅读
  5. 常见知识点总结

    2024-06-09 17:32:02       18 阅读
  6. 列表的C++实

    2024-06-09 17:32:02       20 阅读
  7. JZ2440笔记:热插拔驱动

    2024-06-09 17:32:02       15 阅读
  8. 相同的树-力扣

    2024-06-09 17:32:02       24 阅读
  9. TypeScript常见面试题第十一节

    2024-06-09 17:32:02       13 阅读
  10. TalkingData数据统计:洞察数字世界的关键工具

    2024-06-09 17:32:02       17 阅读