Is there a way to have AppConfigurationClient JavaScript library configured to validate against a self signed certificate correctly?

Kelvin Woo 1 Reputation point
2022-10-28T18:25:36.827+00:00

Our company works behind a VPN where there's a SSL certificate used. However, when working with the AppConfigurationClient behind this firewall, I get the following error:

An error occurred: FetchError: request to https://xxxxxx.azconfig.io/kv/AppConfigurationKeySample?api-version=1.0 failed, reason: self signed certificate in certificate chain  
[1]     at ClientRequest.<anonymous> (xxxxxx\node_modules\node-fetch\lib\index.js:1491:11)  
[1]     at ClientRequest.emit (node:events:513:28)  
[1]     at TLSSocket.socketErrorListener (node:_http_client:481:9)  
[1]     at TLSSocket.emit (node:events:513:28)  
[1]     at emitErrorNT (node:internal/streams/destroy:157:8)  
[1]     at emitErrorCloseNT (node:internal/streams/destroy:122:3)  
[1]     at processTicksAndRejections (node:internal/process/task_queues:83:21) {  
[1]   type: 'system',  
[1]   errno: 'SELF_SIGNED_CERT_IN_CHAIN',  
[1]   code: 'SELF_SIGNED_CERT_IN_CHAIN'  
[1] }  

I do have a copy of a trusted certificate locally, but not sure how I can easily configure this to accept it.

Azure App Configuration
Azure App Configuration
An Azure service that provides hosted, universal storage for Azure app configurations.
214 questions
{count} votes