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.

The node wrapper should pass the new --sslcert and --sslkey options to server

See original GitHub issue

Two new command line options, --sslcert and --sslkey, were added to the Ruby pact mock service which this library wraps. These options allow you to specify a particular SSL certificate instead of using one that’s generated each time. This way you can create a certificate, add it to your computer’s list of trusted root certificates, and avoid the SSL errors typically thrown by web browsers. I plan on submitting a PR for this shortly.

https://github.com/bethesque/pact-mock_service/pull/56

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
mefellowscommented, Feb 27, 2017

No worries! It’s on my to-do, but I’ll try and get that sorted this morning for you. Closing this for now.

0reactions
Blackbaud-AlexKingmancommented, Feb 27, 2017

@mefellows @mboudreau Thanks for your quick help! Now that I understand the implementation a bit more, I see that my original question was a bit misguided. The createServer method in pact-node does indeed work properly, as your gist shows. However, I’m trying to implement these options from the pact-js library, and I see that the constructor in pact-js doesn’t yet handle the sslcert and sslkey params.

Will those be coming soon to pact-js?

Thanks again!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Installing an SSL certificate on Node.js - Hosting - Namecheap
After the SSL certificate is issued, it should be implemented on the web server to enable HTTPS connections. Upon issuance, the Certificate Authority...
Read more >
MongoDB SSL With Self Signed Certificates In Node.js
The MongoDB driver provides server-level and replica set-level SSL options ( sslValidate , sslCA , sslCert , sslKey , sslPass ) to configure...
Read more >
How Do SSL Certificates, Private Keys, & CSRs Work?
This will extract information about your domain and organization from the SSL certificate and use it to create a new CSR, thus saving...
Read more >
Can nodejs generate SSL certificates? - Stack Overflow
The largest problem i'm facing is that i don't know how to generate CA and other server certificates in node.js. In Python, there...
Read more >
Documentation: 15: F.38. postgres_fdw - PostgreSQL
A foreign server using the postgres_fdw foreign data wrapper can have the same ... may create or modify user mappings with the sslcert...
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