项目作者: lakith

项目描述 :
Enable HTTPS with self-signed certificate in Spring Boot 2.0
高级语言: Java
项目地址: git://github.com/lakith/springboot-with-ssl.git
创建时间: 2019-03-04T21:36:00Z
项目社区:https://github.com/lakith/springboot-with-ssl

开源协议:

下载


springboot-with-ssl

Enable HTTPS with self-signed certificate in Spring Boot 2.0

generate our PKCS12 keystore format

  1. keytool -genkeypair -alias lakith -keyalg RSA -keysize 2048 -storetype PKCS12 -keystore lakith.p12 -validity 3650<br/><br/>

For generating our keystore in a JKS format

  1. keytool -genkeypair -alias lakith -keyalg RSA -keysize 2048 -keystore lakith.jks -validity 3650<br/><br/>

convert it to PKCS12 format

  1. keytool -importkeystore -srckeystore lakith.jks -destkeystore lakith.p12 -deststoretype pkcs12<br/><br/><br/><br/>

optional

  1. keytool -genkey -alias lakith -storetype jks -keyalg RSA -keysize 2048 -validity 365 -keystore lakith.jks