viniciusccarvalho / boot-two-way-ssl-example Goto Github PK
View Code? Open in Web Editor NEW2 Way SSL with boot
License: Apache License 2.0
2 Way SSL with boot
License: Apache License 2.0
Hi,
We have purchased SSL from GoDaddy and we have client certificate in .crt
and .pem
format.
How we can use perform the client certificate authentication?
Please guide.
Thanks,
Ankur
I have used your method of loading the jks file from resources, i.e `System.setProperty("javax.net.ssl.trustStore","TestApp.class.getClassLoader().getResource("test1.jks").getFile()");
It works all fine when I use mvn spring:boot run
but cannot detect classpath resources when I use something like java -jar target/xxx-xxx-service-0.1.1-SNAPSHOT.jar
Caused by: java.io.FileNotFoundException: class path resource [test1.jks] cannot be resolved to absolute file path because it does not reside in the file system: jar:file:/Users/xxx/xxx/Himalay/xxx/xxx-xxx-service/target/xxx-xxx-service-0.1.17-SNAPSHOT.jar!/test1.jks at org.springframework.util.ResourceUtils.getFile(ResourceUtils.java:212) at org.springframework.util.ResourceUtils.getFile(ResourceUtils.java:175) at org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainerFactory.configureSslKeyStore(TomcatEmbeddedServletContainerFactory.java:288) ... 18 more
Here is my stack question, any help would be great.
http://stackoverflow.com/questions/37712862/mvn-spring-bootrun-vs-java-jar-target-xxx-jar
Thanks!
At the end of boot-two-way-ssl-example from client they said authentication required username and password..what should be enter for username and password in this example for ClientAuthApplication
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.