# sat-x509

> Librería x509 que ayuda a obtener la información general de un certificado SAT

Latest version **2.0.0** (published 2019-11-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install sat-x509
pnpm add sat-x509
yarn add sat-x509
bun add sat-x509
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2019-11-20 |
| First published | 2019-11-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 203.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Alan Olivares |
| Maintainers | ricaralan |

## Links

- npm: https://www.npmjs.com/package/sat-x509
- npm.io page: https://npm.io/package/sat-x509

## Recent versions

- 2.0.0 (latest) — 2019-11-20
- 1.0.0 — 2019-11-20

## 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

---
_Source: https://npm.io/package/sat-x509 · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
