mrpre / atls Goto Github PK
View Code? Open in Web Editor NEWA light TLS implementation used for learning: TLS 1.0 TLS 1.1 TLS 1.2 TLS 1.3 GMSSL 1.1(国密SSL) based on libcrypto.so.
A light TLS implementation used for learning: TLS 1.0 TLS 1.1 TLS 1.2 TLS 1.3 GMSSL 1.1(国密SSL) based on libcrypto.so.
你好:
关注了您的https://github.com/mrpre/atls项目,可是没有访问 HTTPS 的 client 示例,能否给一个,最好push出来.
多谢~
_crypto.c:317:17: error: ‘NID_sm4_cbc’ undeclared here (not in a function)
0xe013, NID_sm4_cbc, 16, 16, 16, A_CRYPTO_NID_SM3,
^
a_tls_lib.c: In function ‘a_tls_cfg_set_sign_key’:
a_tls_lib.c:1721:41: error: ‘NID_sm2’ undeclared (first use in this function)
if (EC_GROUP_get_curve_name(grp) != NID_sm2) {
^
a_tls_lib.c:1721:41: note: each undeclared identifier is reported only once for each function it appears in
a_tls_lib.c: In function ‘a_tls_cfg_set_sign_cert’:
a_tls_lib.c:1759:41: error: ‘NID_sm2’ undeclared (first use in this function)
if (EC_GROUP_get_curve_name(grp) != NID_sm2) {
^
a_tls_lib.c: In function ‘a_tls_cfg_set_cert’:
a_tls_lib.c:1827:29: error: ‘EVP_PKEY_RSA_PSS’ undeclared (first use in this function)
} else if ((type == EVP_PKEY_RSA_PSS) && cfg->pkey[A_CRYPTO_NID_RSAPSS]) {
^
a_tls_lib.c:1836:49: error: ‘NID_sm2’ undeclared (first use in this function)
if (EC_GROUP_get_curve_name(grp) == NID_sm2
^
a_tls_lib.c: In function ‘a_tls_cfg_set_key’:
a_tls_lib.c:1920:45: error: ‘NID_sm2’ undeclared (first use in this function)
if (EC_GROUP_get_curve_name(grp) == NID_sm2) {
^
Makefile:20: recipe for target 'a_crypto.o' failed
make: *** [a_crypto.o] Error 1
使用 nginx-1.13.12.tar.gz 结合openssl-1.1.1b。
stream {
upstream http_up {
server 127.0.0.1:80;
}
server {
listen 443;
proxy_pass http_up;
a_tls_certificate ../conf/mycert.pem;
a_tls_certificate_key ../conf/mykey.pem;
a_tls_sign_certificate ../conf/mycert_enc.pem;
a_tls_sign_certificate_key ../conf/mykey_enc.pem;
}
}
没有client exchange数据包。谢谢!是openssl版本问题?
像gmssl库添加了如下信息,不知道具体啥意思?麻烦指点,谢谢!
sm-scheme 301 : sm2p256v1
sm-scheme 301 1 : sm2sign
sm-scheme 301 2 : sm2exchange
sm-scheme 301 3 : sm2encrypt
sm-scheme 501 : SM2Sign-with-SM3 : sm2sign-with-sm3
sm-scheme 502 : SM2Sign-with-SHA1 : sm2sign-with-sha1
写的很简洁,不过有些还是看不懂,请求多点注释吧- -
能在apache上编译吗
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.