Incorrect parsing of SSL certificates and keys in ChaincodeBase in external launcher case
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
从 ChaincodeBase 中的 createSSLContext() 开始,检查在 GrpcSslContexts 构建上下文之前,如何读取外部启动器的 TLS 客户端密钥和证书文件。确认已部署的 PEM 格式,并验证外部启动器连接能够接受这些文件,而不会出现当前的解码失败。
由索引模型根据 Issue 内容生成。
描述
ChaincodeBase attempts to parse SSL certificates and keys provided by an external launcher in the following manner:
final SslContext createSSLContext() throws IOException {
final byte[] ckb = Files.readAllBytes(Paths.get(this.tlsClientKeyPath));
final byte[] ccb = Files.readAllBytes(Paths.get(this.tlsClientCertPath));
return GrpcSslContexts.forClient().trustManager(new File(this.tlsClientRootCertPath))
.keyManager(new ByteArrayInputStream(Base64.getDecoder().decode(ccb)),
new ByteArrayInputStream(Base64.getDecoder().decode(ckb)))
.build();
}
This fails, because the certs deployed by the external builder are in PEM format, but the code attempts to Base64 decode them.
The fix is obvious, and I have used it successfully in testing (however, I would have to jump through a bunch of hoops to contribute it, so someone else should probably do it).
- 主要语言
- Java
- 星标
- 322
- 派生
- 210
- 平均合并
- 15 小时 16 分钟
- 30 天内合并 PR
- 29
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
hyperledger/fabric-chaincode-java 的其他 Issue
-
enhancement
难度 4/5 3-5 天 新手友好度 48/100
hyperledger/fabric-chaincode-java#628 ·
维护者通常 1 天内回复
-
enhancement
难度 5/5 一周以上 新手友好度 35/100
hyperledger/fabric-chaincode-java#627 ·
维护者通常 1 天内回复
-
bug
难度 3/5 1-2 天 新手友好度 75/100
hyperledger/fabric-chaincode-java#626 ·
维护者通常 1 天内回复
-
bug
难度 3/5 1-2 天 新手友好度 68/100
hyperledger/fabric-chaincode-java#625 ·
维护者通常 1 天内回复
-
Read/write batching可能重新可做 @jadebluestar 于 119 天前认领,目前没有进行中的 PR。 未关闭enhancement help wanted
难度 4/5 3-5 天 新手友好度 45/100
hyperledger/fabric-chaincode-java#378 · 4 条评论 ·
维护者通常 1 天内回复
查看 hyperledger/fabric-chaincode-java 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 70/100
NationalSecurityAgency/ghidra#9997 · 2 条评论 ·
维护者通常 2 天内回复
-
[Bug] DefaultSerializationExceptionWrapper does not implement Cleanable, so cleanup() is never invoked by codecs可能已有人在做 @binbin0325 今天认领。 未关闭component/need-triage type/need-triage
难度 2/5 1-3 小时 新手友好度 75/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
2026 Error Report
难度 2/5 1-3 小时 新手友好度 68/100
triplea-game/triplea#15096 ·
维护者通常 1 天内回复
-
[Bug][API] Switching workflow versions leaves schedules online可能已有人在做 @zhuangchong 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 82/100
apache/dolphinscheduler#18731 ·
维护者通常 1 天内回复