SSL CERTIFICATE_VERIFY_FAILED in aws cli

后端 未结 11 1094
孤城傲影
孤城傲影 2020-12-29 04:02

I installed AWS CLI on the Windows server 2007 32bit.

aws --version
aws-cli/1.8.8 Python/2.7.9 Windows/2008Server 

I configure aws cl

11条回答
  •  一整个雨季
    2020-12-29 04:24

    If you want to use SSL and not have to specify the --no-verify-ssl option, then you need to set the AWS_CA_BUNDLE environment variable. e.g from PowerShell:

    setx AWS_CA_BUNDLE "C:\Users\UserX\Documents\RootCert.pem"
    

    The PEM file is a saved copy of the root certificate for the AWS endpoint you are trying to connect to. To generate it, first export the certificate in DER format (For details on how to do this, see here). Then run the following command to convert to the PEM format:

    openssl x509 -inform der -in "C:\Users\UserX\Documents\RootCert.der" -out RootCert.pem
    

    If you are using Powershell and not bash, then you will need to first install openssl.

    For a full list of environment variables supported by the AWS CLI, see here

提交回复
热议问题