From 88566056f91ec899e0986ff8bbfaa4b30160cf61 Mon Sep 17 00:00:00 2001 From: Jonathan Barrow Date: Wed, 21 Feb 2024 17:46:02 -0500 Subject: [PATCH] removed CN customization. Broke things --- patch.js | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/patch.js b/patch.js index 7a19ed5..1032824 100644 --- a/patch.js +++ b/patch.js @@ -19,10 +19,6 @@ async function showPrompt() { private_key_path: { description: colors.blue('Path to certificate private key (will generate if not set)') }, - common_name: { - description: colors.blue('CN (default *)'), - default: '*' - }, output_folder_path: { description: colors.blue('Output folder (default to this directory)'), default: './' @@ -97,13 +93,6 @@ function patchCA(options) { patchedCA.validity.notAfter = nintendoCAG3.validity.notAfter; // TODO - Make this configurable? patchedCA.setIssuer(nintendoCAG3.subject.attributes); patchedCA.setSubject(nintendoCAG3.subject.attributes); - patchedCA.setSubject([ - ...nintendoCAG3.subject.attributes.filter(({ name }) => name !== 'commonName'), // * Remove old one - { - name: 'commonName', - value: options.common_name - } - ]); patchedCA.setExtensions([ ...nintendoCAG3.extensions.filter(({ name }) => name !== 'authorityKeyIdentifier'), // * Remove old one {