Line 105:
Line 105:
==Trusted RootCAs==
==Trusted RootCAs==
During startup NIM-module creates two RootCertChains with [[HTTP_Services|HTTPC]]. Both of these only contain the same [[HTTPC:RootCertChainAddDefaultCert|default]] cert with ID 0x3. The first RootCertChain is used with NetUpdateSOAP. Requests such as the "notifications.json" page don't use these RootCertChains(in this case just [[HTTPC:AddDefaultCert|default]] certID 0xB is used).
During startup NIM-module creates two RootCertChains with [[HTTP_Services|HTTPC]]. Both of these only contain the same [[HTTPC:RootCertChainAddDefaultCert|default]] cert with ID 0x3. The first RootCertChain is used with NetUpdateSOAP. Requests such as the "notifications.json" page don't use these RootCertChains(in this case just [[HTTPC:AddDefaultCert|default]] certID 0xB is used).
+
+
==SOAP==
+
+
===NetUpdateSOAP===
+
There are exactly 3 types of network SOAP requests used with [https://nus.c.shop.nintendowifi.net/nus/services/NetUpdateSOAP NetUpdateSOAP] by NIM module, described below. This URL is contained in NIM module itself, however with certain requests it uses an identical URL loaded from an ECommerceSOAP response instead.
+
+
See also [https://github.com/yellows8/ninupdates here].
+
+
====GetSystemUpdate====
+
Returns the current sysupdate title-listing. This also contains the SystemTitleHash returned by GetSystemTitleHash.
+
+
====GetSystemTitleHash====
+
Returns the current SystemTitleHash for the current sysupdate title-listing.
+
+
====GetSystemCommonETicket====
+
Returns the Base64-encoded cetk for each specified TitleId entry.
=Sysupdate checking process=
=Sysupdate checking process=