Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

How Do I Change the SM2 Key Format In Openssl3.0 #24640

Closed
MMDHBZ opened this issue Jun 14, 2024 · 0 comments
Closed

How Do I Change the SM2 Key Format In Openssl3.0 #24640

MMDHBZ opened this issue Jun 14, 2024 · 0 comments
Labels
issue: question The issue was opened to ask a question

Comments

@MMDHBZ
Copy link

MMDHBZ commented Jun 14, 2024

In openssl 3.0, the format of the key generated for sm2 is
-----BEGIN SM2 PARAMETERS-----
BggqgRzPVQGCLQ==
-----END SM2 PARAMETERS-----
-----BEGIN PRIVATE KEY-----
MIGHAgEAMBMGByqGSM49AgEGCCqBHM9VAYItBG0wawIBAQQg2gni/Uhqi3H/qH/H
xY64OhxPjTUUBL0rY5PP32juGOWhRANCAAQBthVa6C3Em42chfFoUS7BzXBgDywn
bXZRrUcUUsvuR+oCt3poxeAkf1Emm9RnjMBA0BuEKUeFZZoz6CU4KWvd
-----END PRIVATE KEY----
But,in order to be compatible with OpenSSL 1.1.1,we want to change it to
-----BEGIN EC PARAMETERS-----
BggqgRzPVQGCLQ==
-----END EC PARAMETERS-----
-----BEGIN PRIVATE KEY-----
MIGHAgEAMBMGByqGSM49AgEGCCqBHM9VAYItBG0wawIBAQQg2gni/Uhqi3H/qH/H
xY64OhxPjTUUBL0rY5PP32juGOWhRANCAAQBthVa6C3Em42chfFoUS7BzXBgDywn
bXZRrUcUUsvuR+oCt3poxeAkf1Emm9RnjMBA0BuEKUeFZZoz6CU4KWvd
-----END PRIVATE KEY----
How we should do it?Thank

@MMDHBZ MMDHBZ added the issue: question The issue was opened to ask a question label Jun 14, 2024
@openssl openssl locked and limited conversation to collaborators Jun 14, 2024
@paulidale paulidale converted this issue into discussion #24641 Jun 14, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
issue: question The issue was opened to ask a question
Projects
None yet
Development

No branches or pull requests

1 participant