curl: (60) SSL certificate problem: certificate has expired
More details here: https://curl.se/docs/sslcerts.html
curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.
Error in mock server
INFO WEBrick::HTTPServer#start: pid=26762 port=55701
ERROR OpenSSL::SSL::SSLError: SSL_accept returned=1 errno=0 peeraddr=(null) state=error: sslv3 alert certificate expired
/Users/saf/dev/pact-foundation/pact-js-core/standalone/darwin-arm64-2.3.0/pact/lib/vendor/ruby/3.2.0/gems/webrick-1.8.1/lib/webrick/server.rb:302:in `accept'
/Users/saf/dev/pact-foundation/pact-js-core/standalone/darwin-arm64-2.3.0/pact/lib/vendor/ruby/3.2.0/gems/webrick-1.8.1/lib/webrick/server.rb:302:in `block (2 levels) in start_thread'
/Users/saf/dev/pact-foundation/pact-js-core/standalone/darwin-arm64-2.3.0/pact/lib/vendor/ruby/3.2.0/gems/webrick-1.8.1/lib/webrick/utils.rb:258:in `timeout'
/Users/saf/dev/pact-foundation/pact-js-core/standalone/darwin-arm64-2.3.0/pact/lib/vendor/ruby/3.2.0/gems/webrick-1.8.1/lib/webrick/server.rb:300:in `block in start_thread'
Using a cert which is configured to expire in the future, results in a successful test run
Reverts pact-foundation/pact-ruby-standalone#129
Updates to Ruby 3.3.0 + OpenSSL 3.2.0
Note:- pact-mock-service will now error when configured with an expired certificate
Check the cert date
Start the mock service with the ssl params
Output from mock server
Make a request with the cert
error for client
Error in mock server
Using a cert which is configured to expire in the future, results in a successful test run