sat-x509
v2.0.0
Published
Librería x509 que ayuda a obtener la información general de un certificado SAT
Downloads
3
Readme
SAT x509
Librería x509 que ayuda a obtener la información general de un certificado SAT.
Instalación
npm i --save sat-x509
Uso
const SatX509 = require('sat-x509').X509;
const satX509Instance = new SatX509();
satX509Instance.readCertPEM('CERTIFICADO_EN_BASE_64');
// Si el certificado es válido, el RFC debería mostrarse correctamente
console.log(satX509Instance.getRFC());
Métodos disponibles
- getSerialNumberHex
- getIssuerHex
- getIssuerString
- getSubjectHex
- getSubjectString
- getKeyUsage
- getNotBefore
- getNotAfter
- readCertPEM
- readCertPEMWithoutRSAInit
- tipoCertificado
- getRFC
- getNumSerie
Licencia
MIT