<#1219 BadSignature error when approaching broker ...
# pact-js-development
g
#1219 BadSignature error when approaching broker on HTTPS Issue created by orenhan Software versions • OS: Windows 10 enterprise • Consumer Pact library: Pact JS v12.3.0_ • Provider Pact library: Pact JS v12.3.0_ • Node Version:
20.10.0
Issue Checklist Please confirm the following: ☑︎ I have upgraded to the latest ☑︎ I have the read the FAQs in the Readme ☑︎ I have triple checked, that there are no unhandled promises in my code and have read the section on intermittent test failures ☐ I have set my log level to debug and attached a log file showing the complete request/response cycle ☐ For bonus points and virtual high fives, I have created a reproduceable git repository (see below) to illustrate the problem I work on a private network and cannot attach logs or code examples Expected behaviour setting disableSslVerifications: true will fix BadSignature error when broker is on https Actual behaviour setting disableSslVerifications: true didn't have an effect Steps to reproduce deploy pact broker with https endpoint publish contract from consumer try to verify pacts from provider running locally Hi :) I'm using PactJs version 12.3.0, and have a pact broker deployed on openshift. on the consumer part - everything works well. contract are published correctly through the cicd pipeline. on the provider part - I created a unit test with jest for verifying contracts using Verifier. I keep getting an error:
Failed to load pact - No pacts found under provider 'provider' matching the given consumer version selectors in pact broker '<https://pact.broker>': IO Error - Failed to access pact broker path '/' - error sending request for url (<https://pact.broker/>): error trying to connect: invalid peer certificate: BadSignature. URL: '<https://pact.broker>'
certificate is indeed invalid, but I just want to disable ssl verification. In the consumer cicd I used PACT_DISABLE_SSL_VERIFICATION and it worked, but with the Verifier it looks like disableSslVerification has no impact. I will mention again - I work on a private network and cannot attach log or code files, I can copy specific things. sorry for that :( Thanks! pact-foundation/pact-js