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

怎么通过sm2 生成pkcs#10 #10

Open
xiaozhu1 opened this issue Apr 30, 2020 · 1 comment
Open

怎么通过sm2 生成pkcs#10 #10

xiaozhu1 opened this issue Apr 30, 2020 · 1 comment

Comments

@xiaozhu1
Copy link

No description provided.

@unsigned-
Copy link

var ecKeypair = KEYUTIL.generateKeypair("EC", "sm2p256v1");
var DN = "/CN=localhost/O=company/C=CN/ST=province/L=city";
var csrPEM = KJUR.asn1.csr.CSRUtil.newCSRPEM({
subject: {str: DN},
sbjpubkey: ecKeypair.pubKeyObj,
sigalg: "SM3withSM2",
sbjprvkey: ecKeypair.prvKeyObj
});

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