ccs-gm
ccs-gm copied to clipboard
中国网安go语言国密库
Signed-off-by: asutorufa
添加支持测试tls单、双证书代码
简述:orderer/peer启动正常的情况下, 使用peer命令行会创建通道失败,通过断点调试发现是在握手时添加了一层证书非空校验,但是默认情况下peer命令行构建的tls.config并没有设置Certificates这个属性,所以就会出现这个错误 ``` var chainToSend *Certificate var certRequested bool certReq, ok := msg.(*certificateRequestMsgGM) if ok { certRequested = true hs.finishedHash.Write(certReq.marshal()) if chainToSend, err = hs.getCertificate(certReq); err != nil || chainToSend.Certificate...
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.0.0-20220214200702-86341886e292 to 0.1.0. Commits See full diff in compare view [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter...