patch: set CN to * because the Wii U accepts it

This commit is contained in:
Jonathan Barrow 2024-01-29 20:08:14 -05:00
parent 95a016a4e2
commit bb25bc6a08
No known key found for this signature in database
GPG Key ID: E86E9FE9049C741F

View File

@ -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
{