node_extra_ca_certs_mozilla_bundle icon indicating copy to clipboard operation
node_extra_ca_certs_mozilla_bundle copied to clipboard

How to change the `default` folder of `pem` file

Open atefBB opened this issue 2 years ago • 4 comments

Hi, thanks for the helpful tool. You are saying in the docs: During the installation of the module, it downloads the latest certificates from the Mozilla database and builds the PEM file in node_modules/node_extra_ca_certs_mozilla_bundle/ca_bundle folder. This pose a prob in the bundled npm packages like many cases (the package will be bundled in dist folder which doesnot have node_modules folder in it) ! Any ideas how to solve this issue ?

atefBB avatar Jan 03 '24 11:01 atefBB

The location is not hardcoded (except in the message), so ideally it should install it in the right location.

arvind-agarwal avatar Jan 03 '24 12:01 arvind-agarwal

Excuse my ignorance ! What u mean by so ideally it should install it in the right location ? node_modules folder ?

atefBB avatar Jan 03 '24 16:01 atefBB

Where ever the module is installed. Basically it creates the folder in the same location as installation directory. So yes by default it is node_modules.

arvind-agarwal avatar Jan 03 '24 16:01 arvind-agarwal

What I have meant is how can I dowload those certs in a custom folder not in node_modules ?

atefBB avatar Jan 08 '24 08:01 atefBB