Skip to content

Commit

Permalink
Change NUS URL and add Nintendo certs.
Browse files Browse the repository at this point in the history
This allows us to download via HTTPS.

Signed-off-by: Thomas Rohloff <v10lator@myway.de>
  • Loading branch information
V10lator committed Mar 21, 2024
1 parent 3a291d9 commit 921a6cb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions build.py
Expand Up @@ -47,6 +47,12 @@ def checkAndDeleteDir(dir):
checkAndDeleteFile("data/ca-certs.pem");
urllib.request.urlretrieve("https://ccadb.my.salesforce-sites.com/mozilla/IncludedRootsPEMTxt?TrustBitsInclude=Websites", "data/ca-certs.pem");

checkAndDeleteFile("data/nintendo.pem");
urllib.request.urlretrieve("https://certs.larsenv.xyz/0005001B10054000/scerts/CACERT_NINTEND_BUNDLE.pem", "data/nintendo.pem");

os.system(f"cat data/nintendo.pem >> data/ca-certs.pem");
checkAndDeleteFile("data/nintendo.pem");

checkAndDeleteDir("NUStmp")
checkAndDeleteDir("out")

Expand Down
2 changes: 1 addition & 1 deletion include/downloader.h
Expand Up @@ -52,7 +52,7 @@ extern "C"
size_t size;
} RAMBUF;

#define DOWNLOAD_URL "http://ccs.cdn.wup.shop.nintendo.net/ccs/download/"
#define DOWNLOAD_URL "https://ccs.shop.wii.com/ccs/download/"

bool initDownloader() __attribute__((__cold__));
void deinitDownloader() __attribute__((__cold__));
Expand Down

0 comments on commit 921a6cb

Please sign in to comment.