GithubHelp home page GithubHelp logo

Comments (4)

tomakehurst avatar tomakehurst commented on July 19, 2024

Could you give me an example of a website that triggers this issue?

from wiremock.

handstandsam avatar handstandsam commented on July 19, 2024

@yogurtearl Are you still having this issue? Also, this may be fixed with the 2.0-beta branch now.

from wiremock.

tomakehurst avatar tomakehurst commented on July 19, 2024

Closing this due to its age. Please can anyone still seeing this issue open a fresh ticket with their setup details.

from wiremock.

calvarez-ov avatar calvarez-ov commented on July 19, 2024

I'm currently having the

java.security.cert.CertificateException: Certificates does not conform to algorithm constraints

error running android unit tests with com.github.tomakehurst:wiremock-standalone:2.7.1 , but only on one PC, running tests on the command line. Works on other PCs on the command line, and works fine on this PC inside Android Studio.

When I find a solution, I'll add a new comment here to hopefully help anybody else who has this.

Unless somebody else finds the solution first and beats me to it :)

UPDATE:
If I run the tests using:

./gradlew clean testDebugUnitTest

Then it appears that my PC's jdk is used, which is 1.8.0_131, and I have the exception.

If I choose the Android Studio jre instead:

env JAVA_HOME=/home/calvarez/dev/android-studio/jre ./gradlew clean testDebugUnitTest

Then everything works just fine. That jre is 1.8.0_112-release

So maybe there is an issue with the newer jdk?

UPDATE (solution/workaround):
In our unit tests, we had a TrustManager that accepted all certificates, but it extended X509TrustManager. It was called, but had no impact. If we instead extend X509ExtendedTrustManager, then it's called and is used: we accept all certificates, including the one from wiremock, and we no longer get this exception.

Related: https://stackoverflow.com/questions/14149545/java-security-cert-certificateexception-certificates-does-not-conform-to-algori

from wiremock.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.