已关闭
SSL Context 对象携带明文私钥密码 #259
xuyuqi创建于 7月9日关闭于 7月13日
wangyang
7月10日 评论:
7月10日 评论:
👋 您好,感谢向 mindie-motor 提交 Issue!
🎉 我们已收到您的反馈,感谢你对开源社区的支持!
📅 处理时效 维护团队将在工作日 24 小时内查看并回复您的问题。
🔍 自助排查(推荐优先查看) 在等待回复期间,您可以先查阅仓库README以及历史 Issue 中相似问题的解决方案,多数问题可快速解决。
💡 为了更快定位问题,请您确保 Issue 包含:
清晰的问题描述
可复现的操作步骤
相关日志、截图或环境信息
我们会尽快跟进,感谢您的理解与配合!


7月13日 关闭了 issue
7月13日 添加了label:resolved
Thanks for sending an issue! Please fill in the following template to help quickly solve your problem.
感谢您提交issue!请填写以下模板,以便快速解决您的问题。
Describe the current behavior / 问题描述 (Mandatory / 必填)
代码位置:motor/common/http/cert_util.py:747
context.password = password.decode(UTF8_ENCODING) # 明文密码作为对象属性持久存储
CertUtil.construct_cert_context 在构建 SSL Context 后,将解密后的私钥密码以字符串属性形式附加到 context 对象上。若该对象在运行时被序列化、pickle、或通过调试接口暴露,私钥密码将明文泄露。
Environment / 环境信息 (Mandatory / 必填)
无
Steps to reproduce the issue / 重现步骤 (Mandatory / 必填)
无
Describe the expected behavior / 预期结果 (Mandatory / 必填)
construct_cert_context 构建完成后删除 context.password 属性
Related log / screenshot / 日志 / 截图 (Mandatory / 必填)
无
Special notes for this issue/备注 (Optional / 选填)