我正在尝试生成证书让我们加密它通过certbot (包版本。0.21.1。-1),但我得到了错误。我正在使用webroot模块。OSError: Could not find a suitable TLSCA certificate bundle, invalid path: /etc/ssl/certs/ca-certificates.crt我没有这个文件名的文件。
在使用pyinstaller生成main.py to exe之后,当发出Api请求到二进制时,我会得到以下错误:OSError: Could not find a suitable TLSCA certificate bundle, invalid path: C:\Users\USER\我尝试在接受的答案中添加代码pip config set global.c
证书,但是在strace下运行python就会发现,在失败的系统上,python从未试图打开ca包。tls/legacy-settings", O_RDONLY) = -1 ENOENT (No such file or directory)
stat("/etc/pki/tls/certs/ca-bundle.crt", {st_mode=S_IFREG|0444, st_size=257079, ...}) =