Reputation: 1073
My local development workstation is behind company's firewall. It uses a self-sign CA which is not trusted. So when I try to access the Azure key vaults using DefaultAzureCredential from @azure/identity, I get the error
FetchError: request to https://mytestkv.azure.net/secrets/mypassword/?api-version=7.2 failed, reason: unable to verify the first certificate
I know it is a certificate issue because if I deploy my application to Azure, there is no problem to access the key vault for the application. My application is a Javascript/Node application.
Is there a way to let the application not check self-signed certificate?
Upvotes: 1
Views: 453
Reputation: 3119
As you are using a self-signed certificate, setting strictSSL to false will not force Key Vault to validate the certificate.
strictSSL: false
Upvotes: 0