Comments (11)
Build snippet that you shared above, i added in pom and did mvn clean install
from mutual-tls-ssl.
Can you share some more details regarding your setup? Which OS and JDK are you using? How do you start the server?
from mutual-tls-ssl.
i am using windows and jdk 11. i followed your readme instructions to start server, it was running without encryption, i I had generated the certificate and When i try to enable one way TLS and run the application , i am getting this error
from mutual-tls-ssl.
Yess, clear and which JDK are you using, zulu, oracle or some other?
from mutual-tls-ssl.
Oracle JDK 11
from mutual-tls-ssl.
That is strange. I have it also locally and it is working fine with the oracle jdk. Do you have some time today or tomorrow to have a call so I can look at your setup and we can walk through it together?
from mutual-tls-ssl.
Appreciate your help man! But I can't have a external call and share screen from this machine since it is in my organizations network.
Thank you
from mutual-tls-ssl.
I can understand that, sure no worries.
So what I can recommend is to go through this video walkthrough: https://github.com/Hakky54/mutual-tls-ssl#demo-and-walk-through-video
If that is still not working you could add the snippet below to the following file locally: https://github.com/Hakky54/mutual-tls-ssl/blob/master/shared-server-resources/pom.xml Maven might be corrupting the data while packaging on Windows, see here for more: https://stackoverflow.com/questions/1052700/java-io-ioexception-invalid-keystore-format
<build>
<resources>
<resource>
<directory>src/main/resources</directory>
<includes>
<include>identity.jks</include>
<include>truststore.jks</include>
</includes>
<filtering>false</filtering>
</resource>
</resources>
</build>
By the way every time when you update the server keystores it might be useful to run: mvn clean install -pl shared-server-resources
from the root directory of the project. This is not required but it might clean up caches.
A last resort is to run this project in gitpod which is an isolated environment setup with couple of tools such as java, maven and visual studio code which already has proven to work over there. Just hit the button below to open your online development environment:
I am not sure why it is not working on your machine as I have run it multiple times also on windows with oracle jdk. Can you try the options above and share your progress?
from mutual-tls-ssl.
this snippet did worked! Thanks @Hakky54 .
I am able to run application now.
from mutual-tls-ssl.
Awesome to hear! By the way I noticed that the Scala compiler was failing on Windows, so I have fixed that yesterday. If you pull the latest version of the master your build will be running more smoothly. I am closing this issue. IF you have any other issues or questions feel free to open a new issue!
from mutual-tls-ssl.
By the way @karanvelayudham So which snippet did do the trick for you?
from mutual-tls-ssl.
Related Issues (19)
- javax.net.ssl.SSLException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty HOT 33
- 找不到客户端启动ssl认证的配置 HOT 4
- class path resource [identity.jks] cannot be resolved to URL because it does not exist HOT 5
- Asking help about the No Subject Alternative Name HOT 4
- Asking help about the check the Certificate Status with OCSP with TLS Connection? HOT 1
- Can't call the server with 2-way TLS based on trusting CA authority - javax.net.ssl.SSLHandshakeException: None of the TrustManagers trust this server certificate chain HOT 7
- Access Server using curl command HOT 9
- A request for examples using standard servers with JAX-RS instead of SpringBoot HOT 1
- Server example with jersey and tomcat HOT 1
- Server example with jboss wildfly HOT 1
- alias does not exist HOT 2
- Missing instructions for running ClientRunnerIT HOT 3
- Server with HttpsServer from com.sun.net.httpserver HOT 12
- Build with mvn is not working HOT 2
- Specif CLASSPATH setting instructions would be beneficial HOT 3
- An explicit instructions which tell how I can run ClientRunnerIT would be beneficial. HOT 3
- Enable Client Cert validation only for a single end point at Service end (Spring Boot Java)? HOT 6
- All client tests fail, potential regression from a dependency HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mutual-tls-ssl.