shadowninja108 / HACGUI

A simple interface for extracting Nintendo Switch contents.
MIT License
72 stars 11 forks source link

Error while decrypting keys on 6.2.0 #7

Closed DaveSwitch closed 5 years ago

DaveSwitch commented 5 years ago

System.AggregateException: Une ou plusieurs erreurs se sont produites. ---> System.IO.InvalidDataException: Failed to decrypt package2! Is the correct key present? à LibHac.Package2.FindKeyGeneration(Keyset keyset, IStorage storage) à LibHac.Package2..ctor(Keyset keyset, IStorage storage) à HACGUI.FirstStart.PickNANDPage.OnNandFound() dans B:\Documents\Switch_Projects\hactoolgui\hactoolgui\FirstStart\PickNANDPage.xaml.cs:ligne 119 à HACGUI.FirstStart.PickNANDPage.b2_1(DerivingPage page) dans B:\Documents\Switch_Projects\hactoolgui\hactoolgui\FirstStart\PickNANDPage.xaml.cs:ligne 91 à HACGUI.FirstStart.DerivingPage.<>cDisplayClass0_0.<.ctor>b1() dans B:\Documents\Switch_Projects\hactoolgui\hactoolgui\FirstStart\DerivingPage.xaml.cs:ligne 24 à System.Threading.Tasks.Task.Execute() --- Fin de la trace de la pile d'exception interne --- ---> (Exception interne #0) System.IO.InvalidDataException: Failed to decrypt package2! Is the correct key present? à LibHac.Package2.FindKeyGeneration(Keyset keyset, IStorage storage) à LibHac.Package2..ctor(Keyset keyset, IStorage storage) à HACGUI.FirstStart.PickNANDPage.OnNandFound() dans B:\Documents\Switch_Projects\hactoolgui\hactoolgui\FirstStart\PickNANDPage.xaml.cs:ligne 119 à HACGUI.FirstStart.PickNANDPage.b2_1(DerivingPage page) dans B:\Documents\Switch_Projects\hactoolgui\hactoolgui\FirstStart\PickNANDPage.xaml.cs:ligne 91 à HACGUI.FirstStart.DerivingPage.<>c__DisplayClass0_0.<.ctor>b__1() dans B:\Documents\Switch_Projects\hactoolgui\hactoolgui\FirstStart\DerivingPage.xaml.cs:ligne 24 à System.Threading.Tasks.Task.Execute()<---

shadowninja108 commented 5 years ago

Try deleting the entire /backups folder on your SD card, then redumping the relevant things

DaveSwitch commented 5 years ago

No, still getting the same error. (My switch can only boot in rcm maybe it's a cause?)

shadowninja108 commented 5 years ago

Your package2 image on your NAND is likely corrupted then.

DaveSwitch commented 5 years ago

so what can I do? Buy a new switch?? :/

shadowninja108 commented 5 years ago

Generate a correct copy with Choidujournx and write it to your NAND

DaveSwitch commented 5 years ago

But to use ChoiDuJourNX I need to boot up my switch to launch Homebrew Launcher and I can't, I tried to downgrade it to 1.0.0 but now cfw doesn't work

shadowninja108 commented 5 years ago

Oh my mistake, I mean ChoiDujour

DaveSwitch commented 5 years ago

Uh don't I need prod.keys to use ChoiDuJour?

DaveSwitch commented 5 years ago

How can I generate a new package2 image with ChoiDuJour?

shadowninja108 commented 5 years ago

BCPKG2-1-Normal-Main would be package2. You would need to write it to your NAND via etcher or hekate (maybe?). As for the keys needed by ChoiDuJour, you'll need to find them somewhere.

DaveSwitch commented 5 years ago

But if I restore BCPKG2-1-Normal-Main I could get the keys from hacgui right?

shadowninja108 commented 5 years ago

Correct

DaveSwitch commented 5 years ago

I tried to backup only BCPKG2-1-Normal-Main Restore but it didn't worked so I will do a full gpp restore then retry.

DaveSwitch commented 5 years ago

So I did the gpp restore but can't extract, but i found the keys.txt on google, how can I use ChoiDuJour to upgrade?

shadowninja108 commented 5 years ago

https://gbatemp.net/threads/how-to-install-run-any-switch-firmware-unofficially-without-burning-any-fuses.507461/

DaveSwitch commented 5 years ago

Are Keys.txt console unique? because I got error because a key is "Not Confirmed"

shadowninja108 commented 5 years ago

Are you on the Kosmos or ReSwitched Discord server? It might be better to move to the support channels of one of those.

DaveSwitch commented 5 years ago

Yeah I will thx