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

gmssl 3.0的密钥文件,能否以-----BEGIN PRIVATE KEY-----开头,以-----END PRIVATE KEY-----结尾 #1633

Closed
zhangzhigang12345 opened this issue Mar 4, 2024 · 0 comments

Comments

@zhangzhigang12345
Copy link

zhangzhigang12345 commented Mar 4, 2024

当前采用命令行:gmssl sm2keygen -pass 1234 -out s_signkey.pem -pubout s_signpubkey.pem
或者
使用Gmssl接口sm2_key_generate、sm2_private_key_info_encrypt_to_pem 生成的s_signkey.pem,打开后,发现是以
以-----BEGIN ENCRYPTED PRIVATE KEY-----开头,以-----END ENCRYPTED PRIVATE KEY-----结尾,如下图:
image

但是偶然发现一个key文件,其内部是以-----BEGIN PRIVATE KEY-----开头,-----END PRIVATE KEY-----结尾,如下图:
image
,所以请问,如何使用gmssl 3.0的命令行或者接口函数,也生成后一种开头结尾的文件,谢谢

@zhangzhigang12345 zhangzhigang12345 closed this as not planned Won't fix, can't repro, duplicate, stale Mar 4, 2024
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

1 participant