title: aws cli returns SSL validation failed [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed
body: <p>I have configured awscli in ubuntu 20.04, however running aws command returs with error</p>
  <pre><code>root@ubuntu:~# aws s3 ls
  
  SSL validation failed for https://s3.amazonaws.com/ [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852)
  </code></pre>
  <p>However, I have also tried the cacert.pem that comes with the awscli package, still the same error.</p>
  <pre><code># aws s3 ls --ca-bundle /home/ubuntu/awscli/aws/dist/awscli/botocore/cacert.pem
  
  SSL validation failed for https://s3.us-east-1.amazonaws.com/ [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1125)
  </code></pre>