cannot add CA to request
See original GitHub issuelooking at: https://github.com/visionmedia/superagent/blob/master/test/node/https.js is see that superagent supports providing the CA during the request
request
.get('https://localhost:8443/')
.ca(cert)
but this is not possible in supertest
var requestHttps = require('supertest')('https://localhost:8002');
requestHttps
.get('/')
.ca(fs.readFileSync('test/data/SSL/dev-client.crt'))
returns TypeError: Object #<Test> has no method ‘ca’
Maybe i’m missing something, but to me this could be bug.
Issue Analytics
- State:
- Created 9 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
CA doesn't publish certificates in trusted domain
By default, it should be in place. Open the Certification Authority snap-in, right-click the CA, and then select Properties. On the Security ...
Read more >cannot add CA to request · Issue #136 · ladjs/supertest - GitHub
Is there a way to pass in an HTTP server and the CA cert? var agent = request.agent(server); agent.get('/').ca(caRootCertificate);.
Read more >I am having trouble adding client certificates - Postman
Go to Settings > Certificates and add the correct client certificate file (PEM for CA certificates, CRT, KEY, or PFX for self-signed ...
Read more >Add certificates to a keychain using Keychain Access on Mac
In the Keychain Access app on your Mac, select either the login or System keychain. Drag the certificate file onto the Keychain Access...
Read more >Add & remove certificates - Pixel Phone Help - Google Support
Add & remove certificates ... Can't find the “Do not validate” option ... Ask the Help Community Get answers from community experts.
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
Well you need to check that in the callback… You can use supertest, the key is using the
.agent()
method.I am getting below error “fs.readFileSync is not a function error” what could be an issue? @MiroRadenovic