Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix Form1.Designer.cs #77

Merged
merged 3 commits into from
Oct 16, 2018
Merged

fix Form1.Designer.cs #77

merged 3 commits into from
Oct 16, 2018

Conversation

garoxas
Copy link
Contributor

@garoxas garoxas commented Oct 15, 2018

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

temporarily disable get version list from nintendo server.
skip saving latest info to xml
…f populating after all data have been loaded to the list
@garoxas
Copy link
Contributor Author

garoxas commented Oct 15, 2018

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

…o download version list from nintendo server
@garoxas
Copy link
Contributor Author

garoxas commented Oct 16, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants