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

生成证书请求文件是报错 #23

Open
xuai-xc opened this issue Aug 7, 2023 · 2 comments
Open

生成证书请求文件是报错 #23

xuai-xc opened this issue Aug 7, 2023 · 2 comments

Comments

@xuai-xc
Copy link

xuai-xc commented Aug 7, 2023

image

进入openssl代码看看了,文件ec_pmeth.c中pkey_ec_ctrl函数没有这个条件EVP_sm3,如下图

@yanshichao0226

@yanshichao0226
Copy link
Contributor

使用pkey签名前,调用EVP_PKEY_set_alias_type(pkey, NID_sm2)做下处理。后续签名会走SM2 pkey_meth的调用逻辑,不是EC pkey_meth的。
原生openssl支持SM2签名也是这个调用逻辑,这里保持了一致

@xuai-xc
Copy link
Author

xuai-xc commented Aug 16, 2023

@yanshichao0226 OK

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

2 participants