I have two different certificates and I want to set both to NODE_EXTRA_CA_CERTS. I tried to set it in the environment variables but got a warning as below during the run and it ignored it altogether.
Warning: Ignoring extra certs from
C:\support\Cert\Certificate1.crt; C:\support\Cert\Certificate2.crt
, load failed: error:0200107B:system library:fopen:Unknown error
Is there any way to bypass this? Or is it that we can set only one file per NODE_EXTRA_CA_CERTS?
I couldn't get much details from the official documentation - NODE_EXTRA_CA_CERTS=file
I have two different certificates and I want to set both to NODE_EXTRA_CA_CERTS. I tried to set it in the environment variables but got a warning as below during the run and it ignored it altogether.
Warning: Ignoring extra certs from
C:\support\Cert\Certificate1.crt; C:\support\Cert\Certificate2.crt
, load failed: error:0200107B:system library:fopen:Unknown error
Is there any way to bypass this? Or is it that we can set only one file per NODE_EXTRA_CA_CERTS?
I couldn't get much details from the official documentation - NODE_EXTRA_CA_CERTS=file
Share Improve this question asked Sep 2, 2022 at 5:08 Adarsh Kumar GMAdarsh Kumar GM 1741 gold badge5 silver badges18 bronze badges1 Answer
Reset to default 6The documentation states:
The file should consist of one or more trusted certificates in PEM format.
So concatenate your .crt
files into a single file, and pass the path of that file to NODE_EXTRA_CA_CERTS
.