pijunqi
keytool -genkey -v -alias tomcat -keyalg RSA   -validity 3650  -keystore c:\tomcat\qi.keystore -dname "CN=localhost,OU=cn,O=cn,L=cn,ST=cn,c=cn" -storepass password -keypass password

查看证书详情

keytool -list -v -keystore qi.keystore

 springBoot配置

server:
  port: 8081
  httpPort: 8080
  ssl:
    #证书的路径.
    key-store: classpath:qi.keystore
    #证书密码,请修改为您自己证书的密码.
    key-store-password: password
    key-alias: tomcat
    key-store-type: JKS
    Enabled: true

 访问项目

http://localhost:8080/XXX或者https://localhost:8081/XXX

  

分类:

技术点:

相关文章:

  • 2021-12-08
  • 2021-12-08
  • 2021-11-28
  • 2021-05-16
  • 2021-11-09
  • 2021-12-08
  • 2021-04-17
猜你喜欢
  • 2021-12-21
  • 2021-12-08
  • 2021-11-28
  • 2021-11-28
  • 2021-11-28
  • 2021-09-08
  • 2021-08-13
相关资源
相似解决方案