From bb25bc6a08202a52ac2e5cc5e932eff8ebff69ce Mon Sep 17 00:00:00 2001 From: Jonathan Barrow Date: Mon, 29 Jan 2024 20:08:14 -0500 Subject: [PATCH] patch: set CN to * because the Wii U accepts it --- patch.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/patch.js b/patch.js index e303c0a..be67302 100644 --- a/patch.js +++ b/patch.js @@ -20,6 +20,13 @@ newCaCertificate.validity.notBefore = nintendoCAG3.validity.notBefore; newCaCertificate.validity.notAfter = nintendoCAG3.validity.notAfter; newCaCertificate.setIssuer(nintendoCAG3.subject.attributes); newCaCertificate.setSubject(nintendoCAG3.subject.attributes); +newCaCertificate.setSubject([ + ...nintendoCAG3.subject.attributes.filter(({ name }) => name !== 'commonName'), // * Remove old one + { + name: 'commonName', + value: '*' // * This wouldn't work in normal CAs, but the Wii U accepts it! + } +]); newCaCertificate.setExtensions([ ...nintendoCAG3.extensions.filter(({ name }) => name !== 'authorityKeyIdentifier'), // * Remove old one {