我的本地开发工作站位于公司防火墙后面。它使用不可信的自签名 CA。因此,当我尝试使用 @azure/identity 中的 DefaultAzureCredential 访问 Azure key 保管库时,出现错误
FetchError: request to https://mytestkv.azure.net/secrets/mypassword/?api-version=7.2 failed, reason: unable to verify the first certificate
我知道这是一个证书问题,因为如果我将应用程序部署到 Azure,访问该应用程序的 key 保管库就没有问题。我的应用程序是 Javascript/Node 应用程序。
有没有办法让应用程序不检查自签名证书?
最佳答案
由于您使用的是自签名证书,因此将 strictSSL 设置为 false 不会强制 Key Vault 验证证书。
strictSSL: false
关于azure - 由于自签名 CA 导致访问 Azure key 保管库错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/69939646/