SSLHandshakeException -bad_certificate
See original GitHub issueHello,
I’ve been trying to run a pact json file against our own server. With SSL disabled - a normal http connection works properly, but for now I get a SSLHandshakeException, claiming there’s a bad certificate. This is the same truststore that we use in several other end to end tests and didn’t have any issue with this. Any hint from where the issue might be?
<plugin>
<groupId>au.com.dius</groupId>
<artifactId>pact-jvm-provider-maven_2.12</artifactId>
<version>3.5.11</version>
<configuration>
<serviceProviders>
<serviceProvider>
<name>provider1</name>
<protocol>https</protocol>
<host>###hostname###</host>
<port>8081</port>
<trustStore>src/main/resources/client-truststore.jks</trustStore>
<trustStorePassword>###password###</trustStorePassword>
<consumers>
<consumer>
<name>consumer1</name>
<pactFile>src/main/resources/pact.json</pactFile>
</consumer>
</consumers>
</serviceProvider>
</serviceProviders>
<pactBrokerUrl/>
</configuration>
</plugin>
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
Received fatal alert: bad_certificate - java - Stack Overflow
But I get a bad certificate error. ... SSLHandshakeException: Received fatal alert: bad_certificate at com.sun.net.ssl.internal.ssl.Alerts.
Read more >Getting error javax.net.ssl.SSLHandshakeException Received ...
ssl.SSLHandshakeException: Received fatal alert: bad_certificate", when executing a web service step, but the same certificate works onSOAP UI.
Read more >Mutual authentication to end point fails with javax.net.ssl ...
SSLHandshakeException : Received fatal alert: bad_certificate ... do not match with the end-point setup, and you could receive an error of bad_certificate.
Read more >SSL Handshake Failures - Bad Client Certificate | Apigee Edge
If you have access to Message Processor logs, then you will notice the error message as Received fatal alert: bad_certificate for the failing...
Read more >javax.net.ssl.SSLHandshakeException: Received fatal alert
net.ssl.SSLHandshakeException: Received fatal alert: bad_certificate”. We have tried a number of different ways to connect, but have been ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I have just realised that I need mutual TLS in order for it to work. Is there any way to provide the keystore besides the truststore for this plugin?
Nothing