I've been meaning to parse that XML and load in all the versions, haven't gotten around to it tho, no easy way to download the .versionlist files with python without ignoring that there's no SSL cert :\
From nuspy:
# Bundle server cert files from updates/0005001B10054000/extracted/content/scerts/
BUNDLE=nintendo_cert_bundle.pem
rm -f $BUNDLE
for X in CACERT_NINTENDO_*.der; do
openssl x509 -inform DER -in $X -outform PEM >> $BUNDLE
done
# Check the bundle works
if echo -n "" | openssl s_client -connect tagaya.wup.shop.nintendo.net:443 -CAfile $BUNDLE; then
echo "Bundle OK"
fi
Then use the bundle like this:
html = requests.get(url, verify='nintendo_cert_bundle.pem')
Note that tagaya sometimes lags behind what tmd.NNN's are available for 1-2 days.
The sequence seems to be
* push new tmd.NNN to CDN
* update tagaya
* CDN refreshes tmd (with no .NNN)