mirror of
https://github.com/AikidoSec/safe-chain.git
synced 2026-05-26 12:10:49 +00:00
Try set pure javascript for node-forge
This commit is contained in:
parent
8ab4d2955a
commit
20420f865e
3 changed files with 16 additions and 7 deletions
|
|
@ -5,7 +5,7 @@ import path from "node:path";
|
|||
import certifi from "certifi";
|
||||
import tls from "node:tls";
|
||||
import { X509Certificate } from "node:crypto";
|
||||
// import { getCaCertPath } from "./certUtils.js";
|
||||
import { getCaCertPath } from "./certUtils.js";
|
||||
|
||||
/**
|
||||
* Check if a PEM string contains only parsable cert blocks.
|
||||
|
|
@ -58,10 +58,10 @@ export function getCombinedCaBundlePath() {
|
|||
const parts = [];
|
||||
|
||||
// 1) Safe Chain CA (for MITM'd registries)
|
||||
// const safeChainPath = getCaCertPath();
|
||||
const safeChainPath = getCaCertPath();
|
||||
try {
|
||||
// const safeChainPem = fs.readFileSync(safeChainPath, "utf8");
|
||||
// if (isParsable(safeChainPem)) parts.push(safeChainPem.trim());
|
||||
const safeChainPem = fs.readFileSync(safeChainPath, "utf8");
|
||||
if (isParsable(safeChainPem)) parts.push(safeChainPem.trim());
|
||||
} catch {
|
||||
// Ignore if Safe Chain CA is not available
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue