Skip to content

Commit a5ec429

Browse files
Readme updates
1 parent 470250b commit a5ec429

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ Or the site does not correctly install the intermediate certificates.
1414

1515
Typically you encounter these at the last minute, and usually, the server is not in your control; hence you cannot modify the certificate installation, and it is challenging to change code at that time.
1616

17-
This module is designed to make all SSL sites that work with Mozilla compatible with nodejs.
18-
1917
### Node js added an Environment variable to address this issue:
2018

2119
### [NODE_EXTRA_CA_CERTS](https://nodejs.org/api/cli.html#cli_node_extra_ca_certs_file)
@@ -25,7 +23,9 @@ When set, the well known "root" CAs (like VeriSign) will be extended with the ex
2523

2624
However, it is cumbersome to create the PEM file for missing certificates manually and it can be a security issue if untrusted certificates are accidentally included.
2725

28-
### This module downloads and creates a PEM file from https://www.ccadb.org/resources (Common CA Database) used by Mozilla
26+
#### This module is designed to make all SSL sites that work with Mozilla Browser compatible with your nodejs script.
27+
28+
#### It downloads and creates a PEM file from https://www.ccadb.org/resources (Common CA Database) used by Mozilla
2929
* https://wiki.mozilla.org/CA/Included_Certificates
3030
* https://wiki.mozilla.org/CA/Intermediate_Certificates
3131

@@ -57,6 +57,7 @@ npx cross-env NODE_EXTRA_CA_CERTS=node_modules/node_extra_ca_certs_mozilla_bundl
5757
This is useful when you want to run as root or listen on privilege port like 80. Since in those situations the above environment variable does not work.
5858
```
5959
const fs = require('fs');
60+
const https = require('https');
6061
https.globalAgent.options.ca = fs.readFileSync('node_modules/node_extra_ca_certs_mozilla_bundle/ca_bundle/ca_intermediate_root_bundle.pem');
6162
```
6263

@@ -65,6 +66,7 @@ If you want to include your custom certificate and still want to connect to othe
6566

6667
```
6768
const fs = require('fs');
69+
const https = require('https');
6870
https.globalAgent.options.ca = yourCertificatePEMcontent + fs.readFileSync('node_modules/node_extra_ca_certs_mozilla_bundle/ca_bundle/ca_intermediate_root_bundle.pem');
6971
```
7072

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "node_extra_ca_certs_mozilla_bundle",
3-
"version": "1.0.2",
3+
"version": "1.0.3",
44
"description": "",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)