Ability to set Certificate Authority for a request or agent.
See original GitHub issueAs 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:
- Created 10 years ago
- Comments:15 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@gjohnson I think the better option is passing
rejectUnauthorized
to the request rather than ignoring security for the entire process withNODE_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.
+1, this is needed - using @RGBboy’s fork for now.