mirror of
https://github.com/Ylianst/MeshCommander
synced 2026-02-17 18:09:00 +00:00
Fixed -kvmdatatrace issue.
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user