question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SSLHandshakeException -bad_certificate

See original GitHub issue

Hello,

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:open
  • Created 6 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
Vlad-Olarucommented, Jan 22, 2018

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?

0reactions
Vlad-Olarucommented, Nov 16, 2018

Nothing

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found