correct format hint
This commit is contained in:
parent
c17f0338e1
commit
bb272a9689
1 changed files with 2 additions and 2 deletions
|
@ -71,8 +71,8 @@ RSA.generate = function (opts) {
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
private: RSA.importSync({ pem: keypair.private, format: priv.format })
|
private: RSA.importSync({ pem: keypair.private, format: priv.type })
|
||||||
, public: RSA.importSync({ pem: keypair.public, format: pub.format, public: true })
|
, public: RSA.importSync({ pem: keypair.public, format: pub.type, public: true })
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue