Skip to contentSkip to conversation

bitbake: fetch2: Add NODE_EXTRA_CA_CERTS to export list

PATCH New George Kelly 1 participant 1 message Feb 9, 2023

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 bitbake: fetch2: Add NODE_EXTRA_CA_CERTS to export list

If you are behind a corporate proxy, the npm fetcher uses the proxy IP address already passed in the list of exports. However, it will error if the proxy injects its own root CA certificate. Thus, the NODE_EXTRA_CA_CERTS environment variable must be passed so the user can include their company's root CA as a trusted CA inside node's certificate store.

---
 lib/bb/fetch2/__init__.py | 1 +
 1 file changed, 1 insertion(+)
lib/bb/fetch2/__init__.py +1 -0
index 5a7a6024..747356df 100644
@@ -851,6 +851,7 @@ FETCH_EXPORT_VARS = ['HOME', 'PATH',
                      'DBUS_SESSION_BUS_ADDRESS',
                      'P4CONFIG',
                      'SSL_CERT_FILE',
+                     'NODE_EXTRA_CA_CERTS',
                      'AWS_PROFILE',
                      'AWS_ACCESS_KEY_ID',
                      'AWS_SECRET_ACCESS_KEY',
Signature · 1 line
2.37.2