mirror of
https://github.com/PretendoNetwork/SSSL.git
synced 2026-09-08 11:25:16 -05:00
patch: set CN to * because the Wii U accepts it
This commit is contained in:
7
patch.js
7
patch.js
@@ -20,6 +20,13 @@ newCaCertificate.validity.notBefore = nintendoCAG3.validity.notBefore;
|
|||||||
newCaCertificate.validity.notAfter = nintendoCAG3.validity.notAfter;
|
newCaCertificate.validity.notAfter = nintendoCAG3.validity.notAfter;
|
||||||
newCaCertificate.setIssuer(nintendoCAG3.subject.attributes);
|
newCaCertificate.setIssuer(nintendoCAG3.subject.attributes);
|
||||||
newCaCertificate.setSubject(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([
|
newCaCertificate.setExtensions([
|
||||||
...nintendoCAG3.extensions.filter(({ name }) => name !== 'authorityKeyIdentifier'), // * Remove old one
|
...nintendoCAG3.extensions.filter(({ name }) => name !== 'authorityKeyIdentifier'), // * Remove old one
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user