gibaBR / Switch-Backup-Manager

Complete Switch Backups management tool
375 stars 53 forks source link

Can't download version list from Nintendo #105

Closed Zriel88 closed 5 years ago

Zriel88 commented 5 years ago
2018-12-11 14:45:20.787 [INFO]    Certificate nx_tls_client_cert.pfx found. Starting download version list from nintendo
2018-12-11 14:45:21.231 [ERROR]   Could not download version list.    en System.Net.WebClient.DownloadDataInternal(Uri address, WebRequest& request)
   en System.Net.WebClient.DownloadString(Uri address)
   en System.Net.WebClient.DownloadString(String address)
   en Switch_Backup_Manager.Util.UpdateVersionList()
2018-12-11 14:45:22.620 [ERROR]   Could not download version list from nintendo. Starting download cached version list from pastebin

Is this a legitimate error or it has to do with the closing of CDN by nintendo?? (or maybe cert is banned)

garoxas commented 5 years ago

How did you get your pfx? If it's originally a pem file, you need to follow these steps to convert it to pfx https://github.com/gibaBR/Switch-Backup-Manager/pull/77#issuecomment-430304758 Or maybe because your cert was banned (some banned certs work, some don't)

Zriel88 commented 5 years ago

I'm using some I found on intenet. Reading a bit more they are probably banned. BTW, you can get the pfx in one liner just doing this openssl pkcs12 -export -in nx_tls_client_cert.pem -out nx_tls_client_cert.pfx

Gotten from here https://gist.github.com/SciresM/c393d27caf18675bcb2475569bb864dd

garoxas commented 5 years ago

I believe I've tested that and it didn't work (at least on the pem file I was using) but your result may vary

I'll see if I can add it to the log if the certificate was banned

Zriel88 commented 5 years ago

I have compiled and run your PR It works nicely Regarding the format of PFX, the one liner I gave works correctly, just need to remember the software expects the certificate to be saved with the "switch" password. No password

2018-12-13 09:22:30.807 [INFO]    Certificate nx_tls_client_cert.pfx found. Starting download version list from Nintendo
2018-12-13 09:22:30.859 [ERROR]   Certificate is not a valid PFX certificate.
2018-12-13 09:22:30.890 [ERROR]   Could not download version list. Certificate is banned or not a valid PFX certificate.
2018-12-13 09:22:30.910 [ERROR]   Failed to download version list from Nintendo. Starting download cached version list from Pastebin
2018-12-13 09:22:30.948 [INFO]    No updates available.

password

2018-12-13 09:22:42.206 [INFO]    Certificate nx_tls_client_cert.pfx found. Starting download version list from Nintendo
2018-12-13 09:22:42.308 [ERROR]   Could not download version list. Certificate is banned or not a valid PFX certificate.
2018-12-13 09:22:42.323 [ERROR]   Failed to download version list from Nintendo. Starting download cached version list from Pastebin
Zriel88 commented 5 years ago

Aaaand I have dumped my own pfx file from my switch and the feature works correctly. I believe this can be closed now

2018-12-13 14:48:23.954 [INFO]    Certificate nx_tls_client_cert.pfx found. Starting download version list from Nintendo
2018-12-13 14:48:24.508 [INFO]    Version list last updated at jueves, 13 de diciembre de 2018 13:15:00