Hacking certificate chain (cert.bin)

Wiimm

Developer
OP
Member
Joined
Aug 11, 2009
Messages
2,292
Trophies
1
Location
Germany
Website
wiimmfi.de
XP
1,521
Country
Germany
I have 2 questions about Nintendo certificate chain ("cert.bin" if extracted from ISO):

1.) Is the cert.bin the same for all games?
(My about 60 games share identical certificates)

2.) What happens if I generate a self signed certificate chain and use it instead of the Nintendoa chain? Does the Wii confirm the certificates by using any other source? If the Wii accept a self signed chain, it is possible to create a well signed ISO (and other well signed stuff) with self made keys.
 

smf

Well-Known Member
Member
Joined
Feb 23, 2009
Messages
6,835
Trophies
2
XP
6,362
Country
United Kingdom
Wiimm said:
2.) What happens if I generate a self signed certificate chain and use it instead of the Nintendoa chain? Does the Wii confirm the certificates by using any other source? If the Wii accept a self signed chain, it is possible to create a well signed ISO (and other well signed stuff) with self made keys.

The root key which signs the certificate chain is stored inside your wii.
You can't easily replace it & you can't have two.

Trucha signing and patching your IOS is much much easier.
 

tueidj

I R Expert
Member
Joined
Jan 8, 2009
Messages
2,569
Trophies
1
Website
Visit site
XP
1,009
Country
Well you can easily replace root - it's hardcoded in IOS. But then normal stuff would break.
The reason they're on every disc is because technically they could make new certs - I believe it's even possible for a disc to contain a revocation list of old certs.
 

tueidj

I R Expert
Member
Joined
Jan 8, 2009
Messages
2,569
Trophies
1
Website
Visit site
XP
1,009
Country
Yes. It's not really needed in that example since the certs are also hardcoded into the sample app (no need to always verify static data, it's not going to change), I just left the entire chain checking in for demonstration purposes. Doing the final verify against Root takes much longer than the rest because it's 4096 bits instead of 2048.

(Look for "// remove this if statement if you don't want to check the whole chain" if you want to speed up the sample code.)
 

Wiimm

Developer
OP
Member
Joined
Aug 11, 2009
Messages
2,292
Trophies
1
Location
Germany
Website
wiimmfi.de
XP
1,521
Country
Germany
tueidj said:
(Look for "// remove this if statement if you don't want to check the whole chain" if you want to speed up the sample code.)
I have already noticed that, but I like to understand all. I will implement that code into wit (both are GPL2).
 

smf

Well-Known Member
Member
Joined
Feb 23, 2009
Messages
6,835
Trophies
2
XP
6,362
Country
United Kingdom
tueidj said:
It's not going to brick just by installing one patched IOS.

It's the system menu one, so if you do screw up with your editing then it won't end good.
Where trucha patching has already been automated so the chances of getting it wrong are much lower.

I guess you could test it safely with SNEEK.

However you slice it, it's not as easy or as convenient as trucha. Which will just work if your wii is running an old enough system menu.
 

Wiimm

Developer
OP
Member
Joined
Aug 11, 2009
Messages
2,292
Trophies
1
Location
Germany
Website
wiimmfi.de
XP
1,521
Country
Germany
This question is open until now:
Wiimm said:
1.) Is the cert.bin the same for all games?
(My about 60 games share identical certificates)
But I have to more questions:
2.) Is is legal to distribute the cert chain (all so called public keys) together with the wit distribution?
3.) Is it legal to distribute the root cert together with the wit distribution?
 

tueidj

I R Expert
Member
Joined
Jan 8, 2009
Messages
2,569
Trophies
1
Website
Visit site
XP
1,009
Country
I don't think anyone can confirm if every game uses the same certs unless they own them all, but I would say it's very likely.

As for distributing the certs, I'm advised it's legal since it's not possible to copyright keys or signatures.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • BigOnYa @ BigOnYa:
    Chutes n Ladders still the best!
    +1
  • Skv0ra @ Skv0ra:
    stopped by a rando comic/board game store the other day -
  • Skv0ra @ Skv0ra:
    my WORD.....8 miniature Kill Teams were $80.......GamesWorkshop been smoking some helllllllla 420
  • Sicklyboy @ Sicklyboy:
    gotta 3d print em
    +2
  • K3Nv3 @ K3Nv3:
    https://youtu.be/Zw2AsheAPpo lol fighting over ice cream cone
  • Skv0ra @ Skv0ra:
    @Sicklyboy,
    oh i have before, but to 3d print FUN ones, you gotta 3d model em...
  • K3Nv3 @ K3Nv3:
    Lol ben and Jerry's made a Facebook post about ks legalizing Marijuana blaming the governor when it's the house holding it up
    +1
  • Skv0ra @ Skv0ra:
    What a weekend - ANOTHER legend uploads fresh! https://www.youtube.com/watch?v=-jI0-yjitA8
  • Skv0ra @ Skv0ra:
    @K3Nv3 do you HONESTLY expect an ice cream company intern to even know wtf legal system is until they borderline post a lawsuit and get their ass beat afterwards?
  • Stail @ Stail:
    Хай хай
  • K3Nv3 @ K3Nv3:
    Well despite what the company does they are in the loop of what's going on sadly people always yap before they get their facts right
  • K3Nv3 @ K3Nv3:
    That's why politics are such a shit show they just focus on one side and not thinking it's not an entire group that's fucking the system
  • Stail @ Stail:
    Do you know the forum lolz.live?
  • AncientBoi @ AncientBoi:
    DAMN IT 😡 ! I'm getting chili sauce all over me ! The only thing I hate about Chilli cheese dogs w/ all the trimmings :angry: :tpi::rofl2::rofl2::rofl2: But mmmmmmmmmgood. :D
  • K3Nv3 @ K3Nv3:
    Rain on Easter Sunday pretty peaceful
  • Skv0ra @ Skv0ra:
    say strapping lads and ladettes, does anyone off the top of their, head, know of a working DS flashcart launcher for 3DS?
  • Skv0ra @ Skv0ra:
    pretty sure both I've had, and remember one working, seem to be giving me the ghost
  • K3Nv3 @ K3Nv3:
    All them should work with cfw as far as I know
  • Skv0ra @ Skv0ra:
    there is a G6 named one - doesnt work
  • K3Nv3 @ K3Nv3:
    Nds should work without one I'd just get a 512gb card for it tbh
  • Skv0ra @ Skv0ra:
    3ds tho
  • K3Nv3 @ K3Nv3:
    Yeah ds should natively work on a 3ds
  • Skv0ra @ Skv0ra:
    tried TWL-Apache slot1 launcher - fails too
  • Skv0ra @ Skv0ra:
    sure, but I want to use my M3 that's already loaded lol
    Skv0ra @ Skv0ra: sure, but I want to use my M3 that's already loaded lol