Skip to content

修复 Python 3.8 和 3.9 运行的错误: ssl.SSLError: [ASN1: NOT_ENOUGH_DATA] not enough data (_ssl.c:4192)#3574

Merged
donghaiwang merged 2 commits into
hutbfrom
fix_ssl
Jun 16, 2026
Merged

修复 Python 3.8 和 3.9 运行的错误: ssl.SSLError: [ASN1: NOT_ENOUGH_DATA] not enough data (_ssl.c:4192)#3574
donghaiwang merged 2 commits into
hutbfrom
fix_ssl

Conversation

@donghaiwang

Copy link
Copy Markdown
Member

Description

当 cadata 加载失败时将 DER 转为 PEM 写入临时文件,再通过 cafile 参数加载
参考:agentscope-ai/QwenPaw#5086

Fixes #3557

Where has this been tested?

  • Platform(s): win11
  • Python version(s): python 3.7-3.10
  • Unreal Engine version(s): 4.26

Possible Drawbacks

@donghaiwang donghaiwang merged commit dfa802b into hutb Jun 16, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ssl.SSLError: [ASN1: NOT_ENOUGH_DATA] not enough data (_ssl.c:4194)

1 participant