Giter Site home page Giter Site logo

Comments (8)

mrpre avatar mrpre commented on May 17, 2024

找到问题了,因为证书不可信。
我拿360自己的证书,当我服务器证书,就通了。
谁知道怎么在360中导入可信的 SM2 CA/ROOT 证书?总不能拿他们的证书或者买一个CFCA的国密证书吧。。

from gmssl.

mrpre avatar mrpre commented on May 17, 2024

或者有没有其他测试工具?否则 测ECDHE_SM2 就没辙了。。

from gmssl.

guanzhi avatar guanzhi commented on May 17, 2024

360浏览器主页上有根证书的连接
gmssl源代码certs/sm2/下面有也包含了这些证书

from gmssl.

mrpre avatar mrpre commented on May 17, 2024

这些 SM2 证书 导入不进去 IE 和 360 里面。我这还有国密办提供的证书,导入也无效。

from gmssl.

mrpre avatar mrpre commented on May 17, 2024

貌似360浏览器不能导入SM证书,估计360本地可信的SM证书是硬编码(代码中写死)的。
目前已经调通了 国密SSL协议 和 ECC_SM4_SM3算法。由于本身SSL协议栈不是基于openssl的,只使用了 GMSSL 的 SM2_decrypt_with_recommended 函,数故在这里不方便直接贴出实现代码。后续会直接基于GMSSL改,方便大家参考学习。

from gmssl.

fgcmaster avatar fgcmaster commented on May 17, 2024

@mrpre @zhaoxiaomeng @guanzhi 你好,我这边基于GMSSL代码做了修改,s3_client是可以访问ebssec.boc.cn了,SSL连接建立和通信都可以,但是我启动s3_server,通过360浏览器访问,当我发送server certificate后 TCP 就 RST了,也没有alert。我试了用ebssec.boc.cn的签名证书和加密证书作为server证书发送给360,也是直接断开,没有alert。我有如下疑问:
1) 直接启的ssl server,通过ebssec.boc.cn的签名证书和加密证书作为server证书的话,360为什么直接断开?
2) 发送server certificate后,不发送server key exchange消息,360会断开TCP嘛?
3) 是否有测试用的 签名和加密证书以及对应的私钥,来测试和360的SSL连接?
多谢了。

from gmssl.

iF2007 avatar iF2007 commented on May 17, 2024

@fgcmaster 你好,想问下你是如何处理SM2的双证书的?也就是你在命令行里如何指定两个证书的?

from gmssl.

fgcmaster avatar fgcmaster commented on May 17, 2024

我没用命令行,都是代码写的client,直接注册两个证书。

from gmssl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.