Files
NapCatQQ/.pnpm-store/v3/files/ec/d6a59f95d7523abc47bf74066f259d0dfd99ab315dceee382e5f81caf0031058f1b2c04f31f4ee72a16d224f106626c647901af9ab23b06562818d948c84f5
TanTan e311ca3275
Build NapCat Artifacts / Windows Loader Test (push) Canceled after 0s
Build NapCat Artifacts / Type Check & Test (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Framework (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Shell (push) Canceled after 0s
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

15 lines
502 B
Plaintext

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.convertPEMToBytes = convertPEMToBytes;
const index_js_1 = require("./iso/index.js");
/**
* Take a certificate in PEM format and convert it to bytes
*/
function convertPEMToBytes(pem) {
const certBase64 = pem
.replace('-----BEGIN CERTIFICATE-----', '')
.replace('-----END CERTIFICATE-----', '')
.replace(/[\n ]/g, '');
return index_js_1.isoBase64URL.toBuffer(certBase64, 'base64');
}