unable to get local issuer certificate

CHEN, SHIRLEY 1 Reputation point
2024-01-29T23:54:52.9+00:00

I tried to run below command to use Azure CLI to update secret for SSL private key. Before that, I try to check the secret list, it also show me the same error:

$ az keyvault secret list --vault-name bsfprdce01opskv01 ←[91m[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1006)←[0m I do not have issue to run "az login" or any other command beside the "keyvault secret". I did export the HTTP/HTTPS Proxy and download the ATT certificate. I have been asked around people, google the solution, and try all the possible suggestions from MS community but all of them not work. Could anyone help? Thank you!

Azure Key Vault
Azure Key Vault
An Azure service that is used to manage and protect cryptographic keys and other secrets used by cloud apps and services.
1,404 questions
{count} votes

1 answer

Sort by: Most helpful
  1. CHEN, SHIRLEY 1 Reputation point
    2024-02-05T14:15:31.3+00:00

    Hi, Akshay: I do not have error when I use Azure Portal to update the SSH Key. However, as I mentioned, the key did not apply properly. It took it as one line instead of SSH key format. That's why we need to use the Azure CLI to update the SSH key. I have attached the expected result and unexpected result as your reference. As I know, only update the SSH key thru Azure CLI will show the expected result in attachment. Can you please help to on my Azure CLI error and provide the solution if possible? Azure Portal Key vault option is not working for me. Thank you! Expected SSH Key result:expected_cert_update_as_this

    Unexpected SSH Key result: unexpected_cert_update_as_this


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.