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.

Ability to set Certificate Authority for a request or agent.

See original GitHub issue

As of Node 0.10.0, rejectUnauthorized default value has been set to true meaning that tests that use HTTPS locally will now fail where superagent is used.

I suggest add the ability to set the options.ca so that self signed certificates will work with superagent.

The option ca in the https module accepts an authority certificate or array of authority certificates to check the remote host against.

See http://nodejs.org/api/https.html#https_https_request_options_callback

Issue Analytics

  • State:closed
  • Created 10 years ago
  • Comments:15 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
jonathanrdelgadocommented, Apr 12, 2014

@gjohnson I think the better option is passing rejectUnauthorized to the request rather than ignoring security for the entire process with NODE_TLS_REJECT_UNAUTHORIZED=0.

Adding the CA works in some cases, and should be kept as a feature, but if you are trying to secure an IP, node will always throw a match error, even if you pass the cert as a ca.

I’ll throw in a PR if you agree.

0reactions
djechlincommented, Jan 13, 2014

+1, this is needed - using @RGBboy’s fork for now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Ability to set Certificate Authority for a request or agent. #197
I suggest add the ability to set the options.ca so that self signed certificates will work with superagent.
Read more >
What is a certificate authority (CA)? - TechTarget
A certificate authority (CA) is a trusted entity that issues digital certificates to authenticate content sent from web servers. Learn about CAs here....
Read more >
Requesting and Using a Certificate from a Trusted ... - TechDocs
You can request and use a certificate from a trusted certificate authority. Certificates issued by trusted certificate authorities, ...
Read more >
What is a CA? Certificate Authorities Explained - DigiCert.com
A certificate authority (CA) is a trusted organization that issues digital certificates for websites and other entities.
Read more >
AD CS Security Guidance - TechNet Articles - Microsoft
Configure and maintain the CA. This is a CA role and includes the ability to assign all other CA roles and renew the...
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