Skip to content

Commit

Permalink
Merge pull request #1646 from jeffcharles/clarify-readme-ca-option
Browse files Browse the repository at this point in the history
Clarify the nature of setting `ca` in `agentOptions`
  • Loading branch information
simov committed Jun 21, 2015
2 parents f0c4ec0 + 1727479 commit 1506774
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Expand Up @@ -646,7 +646,8 @@ request.get({

It is possible to accept other certificates than those signed by generally allowed Certificate Authorities (CAs).
This can be useful, for example, when using self-signed certificates.
To allow a different certificate, you can specify the signing CA by adding the contents of the CA's certificate file to the `agentOptions`:
To require a different root certificate, you can specify the signing CA by adding the contents of the CA's certificate file to the `agentOptions`.
The certificate the domain presents must be signed by the root certificate specified:

```js
request.get({
Expand Down

0 comments on commit 1506774

Please sign in to comment.