You will get this mistake when your local CA store can't be discovered possibly as a result of authorization problems or as the file is outright missing. To see which CA file python is working with, run the subsequent command: I ran into an identical situation on Mac OSX in https://iam99721864.blogdun.com/29761322/the-2-minute-rule-for-iam997