SSL CERTIFICATE_VERIFY_FAILED in aws cli

后端 未结 11 1055
孤城傲影
孤城傲影 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:37

    use the following option to overcome the ssl certification issue.

    aws s3 ls --no-verify-ssl

    0 讨论(0)
  • 2020-12-29 04:38

    I believe this option would have been tried already but just putting it here for everyones reference:

    when you have proxy added to your ec2 machines and it is in private subnet with a S3 vpc-endpoint attached. I was getting the same error.

    Bypassing the proxy using no_proxy for the bucket as per : https://aws.amazon.com/premiumsupport/knowledge-center/connect-s3-vpc-endpoint/

    didn't help me and was still failing with the same error.

    the only catch here was we need to add endpoint url which is s3.ap-southeast-2.amazonaws.com as below and it worked for me:

    export NO_PROXY=169.254.169.254,s3.ap-southeast-2.amazonaws.com

    169.254.169.254 is used to access instance role credentials in my case.

    0 讨论(0)
  • 2020-12-29 04:40

    use this option with your cmd "--no-verify-ssl"

    0 讨论(0)
  • 2020-12-29 04:41

    I ran into a similar issue on Mac OSX in the company/corporate network. If you don't know the proxy URL Get it from your company's network administrator and configure with the following commands.

    Linux, macOS, or Unix

    $ export HTTP_PROXY=http://proxy.example.com:1234
    $ export HTTPS_PROXY=https://proxy.example.com:1234
    

    Windows

    $ set HTTP_PROXY=http://proxy.example.com:1234
    $ set HTTPS_PROXY=https://proxy.example.com:1234
    

    More information

    0 讨论(0)
  • 2020-12-29 04:44

    Not sure if it's related to to the OP's issue, however, one of our devs had this issue this morning, turned out he was using Fiddler (on Windows), to debug other issues. After stopping Fiddler (which was intercepting https traffic), the issue was resolved.

    0 讨论(0)
提交回复
热议问题