Create selfsign certificate using JKS keytool for HTTPS/TLS communication, among different Spring Boot applications.
==================================
C:\Program Files\Java\jre1.8.0_121\bin
C:\Program Files\Java\jre1.8.0_121\bin> keytool -genkey -alias https-example -storetype JKS -keyalg RSA -keysize 2048 -validity 365 -keystore https-example.jks
keytool -genkeypair -alias sibsankar-example -storetype JKS -keyalg RSA -keysize 2048 -validity 365 -keystore sibsankar-example.jks
After generation of https-example.jks certificate, copy it and put it in your spring boot application resources directory.
keytool -list -v -keystore https-example.jks
keytool -genseckey -alias sibs-example -storetype jceks -keyalg AES -keysize 256 -validity 365 -keystore sibs-example.jks
openssl genrsa -out privateKey.pem 2048 openssl rsa -in privateKey.pem -outform PEM -pubout -out publicKey.pem openssl rsa -in privateKey.pem -pubout -out publickey-1.crt