Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

编译出的nginx 能不能同时支持sm2证书与rsa证书? #7

Open
Jiaweimsg opened this issue Jul 16, 2024 · 3 comments
Open

Comments

@Jiaweimsg
Copy link

编译出的nginx 能不能同时支持sm2证书与rsa证书?

@Jiaweimsg
Copy link
Author

./nginx -c /opt/nginx_test_rsa.conf
/opt/GmSSL/src/sm2_key.c:155:sm2_public_key_algor_from_der():
/opt/GmSSL/src/sm2_key.c:435:sm2_public_key_info_from_der():
/opt/GmSSL/src/x509_cer.c:1052:x509_tbs_cert_from_der():
/opt/GmSSL/src/x509_cer.c:1432:x509_cert_get_details():
/opt/GmSSL/src/x509_cer.c:1315:x509_cert_from_pem():
/opt/OpenSSL-Compatibility-Layer/src/pem.c:86:PEM_read_bio_X509():
/opt/OpenSSL-Compatibility-Layer/src/pem.c:124:PEM_read_bio_X509_AUX():
nginx: [emerg] cannot load certificate "/opt/cert_openssl/ssl/lab.com.crt": PEM_read_bio_X509_AUX() failed

我加入了正常的证书,启动异常

@PikaByter
Copy link

我测试的结果也是这样

@BaiJing-LR
Copy link

这个是只支持 TLCP 协议的, 只支持国密证书, 不支持RSA

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants