webalys-hq / streamlinehq-npm

The deprecated Streamline NPM package, which will be deleted on 1st November 2022.
https://medium.com/streamline-icons/how-streamline-narrows-down-its-focus-eac6fdb5c6f2
24 stars 5 forks source link

Installing Streamline assets failed - Error: self signed certificate in certificate chain #10

Closed atbostudio closed 3 years ago

atbostudio commented 3 years ago

Hello,

for security reasons we are working behind a corporate proxy.

While installing @streamlinehq/streamlinehq we retrieve following error.

Installing Streamline assets for ... API error: self signed certificate in certificate chain Error: self signed certificate in certificate chain at TLSSocket.onConnectSecure (_tls_wrap.js:1321:34) at TLSSocket.emit (events.js:210:5) at TLSSocket._finishInit (_tls_wrap.js:794:8) at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:608:12) { code: 'SELF_SIGNED_CERT_IN_CHAIN' }

we already tried to add our ca file using npm config set cafile but it is still not working. any suggestions?

the previous npm packages worked well

kind regards

atbostudio commented 3 years ago

as your method to gather the icons from an external api endpoint using a embeded node application we needed to add our corporate cacerts to our specific node version.

on windows: set NODE_EXTRA_CA_CERTS=C:\\path\\to\\cacerts.pem

cbrwizard commented 3 years ago

I'm glad you were able to resolve this issue. Thank you for sharing the solution as well!