@oxhq/oxpki-wasm
v0.1.0-alpha.3
Published
Browser WASM bindings for oxpki SAT-compatible certificate artifacts
Downloads
497
Readme
@oxhq/oxpki-wasm
Browser WASM bindings for oxpki-core.
Install
npm install @oxhq/oxpki-wasm@alphaVue / Vite
import {
generateCsd,
inspectCertificate,
pairCheck,
renewFiel,
} from "@oxhq/oxpki-wasm";
const certDer = new Uint8Array(await certFile.arrayBuffer());
const keyDer = new Uint8Array(await keyFile.arrayBuffer());
const info = inspectCertificate(certDer);
const pair = pairCheck(certDer, keyDer, password);
const csd = generateCsd(
"RFC",
"CURP_OR_SERIAL",
"LEGAL NAME",
"BRANCH",
"new-key-password",
certDer,
keyDer,
password,
"20260706",
"120000",
""
);generateCsd returns encryptedKeyDer, sdgDer, keyName, sdgName, and
the request entry name. renewFiel returns encryptedKeyDer, renewalDer,
keyName, and renewalName.
Security
The package does not upload, persist, or call SAT. Keep .key material local
unless the user explicitly exports it.
Status
Alpha. The Rust core has SAT acceptance proof for FIEL renewal .ren and CSD
.sdg. Initial FIEL .req, moral person, and multi-branch CSD proof are still
pending.
