Possible bug in in `_has_root_cert`
还没有人认领这个 Issue。
评估
调研方向
首先定位 _has_root_cert 的实现和 check_valid_cert 的定义,然后使用 mtls -s some-prod certificate create 重现该行为。跟踪返回值并确认根证书检查的结果;当报告的 false 结果得到一致处理,并且该行为有回归测试时,即表示完成。
由索引模型根据 Issue 内容生成。
描述
I added some debug prints:
def _has_root_cert(self):
if sys.platform == "darwin":
name = self.ca_cert_file_path
else:
name = "{server} Root CA".format(server=self.server)
print("Vaild cert? ")
print(self.check_valid_cert(name, usage="CT,T,T", is_root=True))
if self.check_valid_cert(name, usage="CT,T,T", is_root=True):
print("Yes? True.")
return True
print("No? False.")
return False
result:
> mtls -s some-prod certificate create
Retrieving CRL from server...
Writing CRL to /home/dpc/.config/mtls/some-prod/crl.pem
Vaild cert?
(False, False, False)
Yes? True.
Decrypting User Key...
Generating CSR for bitgo-prod
Signing CSR for verification on server...
CSR Public key does not match previous user key
AFAICT a tuple of three False values becomes True, which is :sus:.
- 主要语言
- Python
- 星标
- 29
- 派生
- 7
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
drGrove/mtls-cli 的其他 Issue
-
难度 5/5 一周以上 新手友好度 25/100
-
难度 5/5 一周以上 新手友好度 25/100
-
Use cryptographically secure random source for password generation可能重新可做 @M-S-10 于 438 天前认领,目前没有进行中的 PR。 未关闭good first issue help wanted
难度 1/5 1 小时以内 新手友好度 45/100
-
enhancement help wanted
难度 3/5 1-2 天 新手友好度 25/100
-
MacPorts Package未关闭package manger
难度 5/5 一周以上 新手友好度 25/100
相似的 Issue
-
难度 1/5 1-3 小时 新手友好度 85/100
WLAN-Pi/wlanpi-profiler#341 ·
维护者通常 1 天内回复
-
Memory leak: the shared `validation_aborted_error` keeps every traceback it is raised through可能已有人在做 @Fire162 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
graphql-python/graphql-core#287 ·
-
难度 2/5 1-3 小时 新手友好度 67/100
roman-corgi/ctc-dip#160 ·
维护者通常 1 天内回复
-
type-bug
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
render_findings.py reads and writes in the host's default encoding, so findings.html breaks on a cp1252 Windows host可能已有人在做 @Aaqibhafeezkhan 今天认领。 未关闭bug good first issue mentored python size: XS up-for-grabs
难度 2/5 1-3 小时 新手友好度 75/100
dheerajjha/mcp-migrate#366 · 1 条评论 ·
维护者通常 1 天内回复