You can get this mistake when your local CA retail store can't be discovered possibly on account of permission complications or since the file is outright lacking. To view which CA file python is utilizing, operate the next command: If you have proxy additional for your ec2 devices and it can be in non-public subnet which has a S3 vpc-endpoint a