1
0
mirror of https://github.com/Ylianst/MeshCommander synced 2026-02-17 18:09:00 +00:00

Fixed -kvmdatatrace issue.

This commit is contained in:
Ylian Saint-Hilaire
2020-08-10 13:47:28 -07:00
parent ea9fb68287
commit 1507acee4f
116 changed files with 49517 additions and 18 deletions

View File

@@ -18480,9 +18480,9 @@ pki.certificateFromAsn1 = function(obj, computeHash) {
// get oid
var oid = asn1.derToOid(capture.publicKeyOid);
if(oid !== pki.oids['rsaEncryption']) {
throw new Error('Cannot read public key. OID is not RSA.');
}
//if(oid !== pki.oids['rsaEncryption']) {
//throw new Error('Cannot read public key. OID is not RSA.');
//}
// create certificate
var cert = pki.createCertificate();
@@ -18602,8 +18602,13 @@ pki.certificateFromAsn1 = function(obj, computeHash) {
cert.extensions = [];
}
if (oid === pki.oids.rsaEncryption) {
// convert RSA public key from ASN.1
cert.publicKey = pki.publicKeyFromAsn1(capture.subjectPublicKeyInfo);
}
// convert RSA public key from ASN.1
cert.publicKey = pki.publicKeyFromAsn1(capture.subjectPublicKeyInfo);
//cert.publicKey = pki.publicKeyFromAsn1(capture.subjectPublicKeyInfo);
return cert;
};