Closed Zriel88 closed 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)
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
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
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
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
Is this a legitimate error or it has to do with the closing of CDN by nintendo?? (or maybe cert is banned)