最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Is it possible to provide multiple files to NODE_EXTRA_CA_CERTS - Stack Overflow

programmeradmin2浏览0评论

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 badges
Add a ment  | 

1 Answer 1

Reset to default 6

The 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.

发布评论

评论列表(0)

  1. 暂无评论