From 0fffcf2cc14c7e644b3fd29eeca11d592f375326 Mon Sep 17 00:00:00 2001 From: Sander Declerck Date: Fri, 28 Nov 2025 14:51:54 +0100 Subject: [PATCH] Add certificate command --- packages/safe-chain/bin/safe-chain.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/safe-chain/bin/safe-chain.js b/packages/safe-chain/bin/safe-chain.js index 3f32bff..90d95cf 100755 --- a/packages/safe-chain/bin/safe-chain.js +++ b/packages/safe-chain/bin/safe-chain.js @@ -12,6 +12,7 @@ import { main } from "../src/main.js"; import path from "path"; import { fileURLToPath } from "url"; import fs from "fs"; +import { getCombinedCaBundlePath } from "../src/registryProxy/certBundle.js"; /** @type {string} */ let dirname; @@ -56,6 +57,12 @@ if (pkgManagerCommands.includes(command)) { process.exit(0); } else if (command === "setup") { setup(); +} else if (command === "certificate") { + (async function () { + const path = getCombinedCaBundlePath(); + const data = await fs.promises.readFile(path); + ui.writeInformation(data.toString("utf8")); + })(); } else if (command === "teardown") { teardown(); } else if (command === "setup-ci") {