gibaBR / Switch-Backup-Manager

Complete Switch Backups management tool
372 stars 54 forks source link

fix Form1.Designer.cs #77

Closed garoxas closed 5 years ago

garoxas commented 5 years ago

so the Form1.Designer.cs file was messed up. if you only want to fix the compilation issue, you can just apply that

but I've also added another implementation in this PR

latest version information is no longer stored in the XML (this was slow previously as it needs to save to XML for each entry in the DB), and moved to map the latest version info when loading data from the XML instead this should be faster and better than before where the latest version data was refreshed one at a time but if the user initiate "Update version list" from the menu, this will still happen but not as noticeable as before

but there's also bad news. my method for getting version list directly from nintendo server no longer works now (damn I did that only to find it no longer works 2 days later), so I disabled it and default to download from the pastebin instead

garoxas commented 5 years ago

this is weird. I've asked the others and everyone seems to say that the method to get version list still working please hold on from merging this PR, I'll need to check that again

garoxas commented 5 years ago

should be good now

below I'll provide the steps to convert certificate in pem format (used by CDNSP) to pfx format

Step 1 Open your certificate file as text, it will be mostly like this

-----BEGIN PRIVATE KEY-----
Wu7P/jE3Puci5z+8<snip>
-----END PRIVATE KEY-----  
-----BEGIN CERTIFICATE-----  
ZjELMAkGA1UEBh<snip>  
-----END CERTIFICATE-----

Step 2 Split the file as 2 separate files and name them as below

nx_tls_client_cert.key

-----BEGIN PRIVATE KEY-----
Wu7P/jE3Puci5z+8<snip>
-----END PRIVATE KEY-----  

nx_tls_client_cert.cert

-----BEGIN CERTIFICATE-----  
ZjELMAkGA1UEBh<snip>  
-----END CERTIFICATE-----

Step 3 Run this command (openssl is available in Linux and Mac by default, Windows user can download it manually or use Cygwin)

openssl pkcs12 -export -inkey nx_tls_client_cert.key -in nx_tls_client_cert.cert -name switch -out nx_tls_client_cert.pfx

If it asks for passphrase, use switch

Step 4 Put the nx_tls_client_cert.pfx in the same directory as Switch Backup Manager.exe and you're good to go

Note. You can use banned certificates for this, although in some cases some certificates still rejected by nintendo server