correct format hint

This commit is contained in:
AJ ONeal 2018-11-24 18:36:32 -07:00
parent c17f0338e1
commit bb272a9689

View file

@ -71,8 +71,8 @@ RSA.generate = function (opts) {
}
return {
private: RSA.importSync({ pem: keypair.private, format: priv.format })
, public: RSA.importSync({ pem: keypair.public, format: pub.format, public: true })
private: RSA.importSync({ pem: keypair.private, format: priv.type })
, public: RSA.importSync({ pem: keypair.public, format: pub.type, public: true })
};
});
});