Skip to content

Demo for the concept of self signed keystore, truststore and https call via resttemplate

Notifications You must be signed in to change notification settings

sumeetmondal/https-security-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Commands to generate keystore and truststore for localhost

keytool -genkeypair -keyalg RSA -keysize 2048 -alias localhost -dname "CN=Sumeet,OU=iamsumeet,O=iamsumeet,C=IN" -ext "SAN:c=DNS:localhost,IP:127.0.0.1" -validity 3650 -keystore keystore.pkcs12 -storepass secret -keypass secret -deststoretype pkcs12
keytool -export -alias localhost -file localhost.cer -keystore keystore.pkcs12
keytool -import -v -trustcacerts -alias localhost -file localhost.cer -keystore truststore.jks

#eli5 How to call https://localhost..." from rest client and get no certificate related issues (also, not ignore cert validation) :)

About

Demo for the concept of self signed keystore, truststore and https call via resttemplate

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages