Forge parsed a cert without error. But ZCertificate reported the error that the modulus is not a positive number

Aperta
#1,146 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
45/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
javascript

Direzione di ricerca

Start with the reproduction script in the issue and the attached cert.zip, then compare node-forge's certificate parsing result with ZCertificate, OpenSSL, and GnuTLS. Trace the parsing path that handles the certificate's RSA modulus and use the supplied certificate as a regression case; done means the behavior is intentionally aligned with the expected parser result and covered by a test.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Forge , OpenSSL and GnuTLS parsed a cert without error. But ZCertificate reported the error that the modulus is not a positive number.The actual result is that Forge ,OpenSSL and GnuTLS have no errors when parsing the certificate,But ZCertificate reported the error "level=error msg="could not parse certificate: x509: RSA modulus is not a positive number".

To Reproduce:

const forge = require('node-forge');
const fs = require('fs');
const filePath = process.argv[2]; 
const certPem = fs.readFileSync(filePath, 'utf8');
const cert = forge.pki.certificateFromPem(certPem);
console.dir(cert, { depth: null, colors: true });

Expected behavior:
Same result as ZCertificate

cert.zip

Lingua principale
JavaScript
Stelle
5.4k
Fork
874
Merge medio
3m
PR unite (30g)
6

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di digitalbazaar/forge

Tutte le issue di digitalbazaar/forge

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.