You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The privateKey.exponent is the same as privateExponent, it should be publicExponent。
String encodePrivateKeyToPemPKCS1(RSAPrivateKey privateKey) {
var topLevel = new ASN1Sequence();
var version = ASN1Integer(BigInt.from(0));
var modulus = ASN1Integer(privateKey.n);
var publicExponent = ASN1Integer(privateKey.exponent);
var privateExponent = ASN1Integer(privateKey.privateExponent);
The text was updated successfully, but these errors were encountered:
The
privateKey.exponent
is the same asprivateExponent
, it should bepublicExponent
。The text was updated successfully, but these errors were encountered: