We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
privateKey = forge.pki.privateKeyFromPem(private_key); //var md = forge.md.sha1.create(); var md = forge.md.sha1.create(); //forge.util.decode64(privateKey) md.update(preSignBuf,inputCharset); var sign = forge.util.encode64(privateKey.sign(md));
上面的代码怎么改成适用于x509 的代码 private key为啥需要加 '-----BEGIN PRIVATE KEY-----\n'和'-----END PRIVATE KEY-----'
The text was updated successfully, but these errors were encountered:
No branches or pull requests
privateKey = forge.pki.privateKeyFromPem(private_key);
//var md = forge.md.sha1.create();
var md = forge.md.sha1.create();
//forge.util.decode64(privateKey)
md.update(preSignBuf,inputCharset);
var sign = forge.util.encode64(privateKey.sign(md));
上面的代码怎么改成适用于x509 的代码
private key为啥需要加 '-----BEGIN PRIVATE KEY-----\n'和'-----END PRIVATE KEY-----'
The text was updated successfully, but these errors were encountered: