`requests.exceptions.SSLError: HTTPSConnectionPool(host='artifactory.internal', port=443): Max retries exceeded ... [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate`
BeginnerTroubleshootingboto3, HTTP & API errors
Answer
Likely causes → The server uses an internal CA (or a TLS-intercepting proxy) that requests' certifi bundle does not trust; or the server does not send its intermediate certificate.
Diagnose →
openssl s_client -connect artifactory.internal:443 -showcerts </dev/null
python -c "import certifi; print(certifi.where())"
Fix → REQUESTS_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt (with the corporate CA installed), or verify="/path/corp-ca.pem"; fix the server chain if intermediates are missing. Never verify=False.
Prevent → Install corporate CAs in base images and set REQUESTS_CA_BUNDLE and SSL_CERT_FILE there.
More on boto3, HTTP & API errors
`botocore.exceptions.NoCredentialsError: Unable to locate credentials`Beginner`botocore.exceptions.NoRegionError: You must specify a region.` even though `AWS_REGION` is set.Intermediate`botocore.exceptions.ClientError: An error occurred (UnauthorizedOperation) when calling the DescribeInstances operation: You are not authorized to perform this operation.`Beginner`An error occurred (ExpiredToken) when calling the ... operation: The security token included in the request is expired` midway through a long job.Advanced`An error occurred (RequestLimitExceeded) when calling the DescribeInstances operation (reached max retries: 4): Request limit exceeded.`Intermediate`An error occurred (InvalidClientTokenId) when calling the GetCallerIdentity operation: The security token included in the request is invalid.`Beginner