mirror of
https://github.com/NinjaCheetah/libWiiPy.git
synced 2025-04-25 12:51:01 -04:00
Match Root-CA00000002-XS00000004 as a dev Ticket
This commit is contained in:
parent
06b36290ed
commit
f0b79e1f39
@ -205,8 +205,9 @@ def download_cert_chain(wiiu_endpoint: bool = False, endpoint_override: str = No
|
||||
# XS (Ticket certificate) data.
|
||||
cert_chain += cetk[0x2A4:0x2A4 + 768]
|
||||
# Since the cert chain is always the same, check the hash to make sure nothing went wildly wrong.
|
||||
if hashlib.sha1(cert_chain).hexdigest() != "ace0f15d2a851c383fe4657afc3840d6ffe30ad0":
|
||||
raise Exception("An unknown error has occurred downloading and creating the certificate.")
|
||||
# This is currently disabled because of the possibility that one may be downloading non-retail certs (gasp!).
|
||||
#if hashlib.sha1(cert_chain).hexdigest() != "ace0f15d2a851c383fe4657afc3840d6ffe30ad0":
|
||||
# raise Exception("An unknown error has occurred downloading and creating the certificate.")
|
||||
return cert_chain
|
||||
|
||||
|
||||
|
@ -160,7 +160,8 @@ class Ticket:
|
||||
limit_value = int.from_bytes(ticket_data.read(4))
|
||||
self.title_limits_list.append(_TitleLimit(limit_type, limit_value))
|
||||
# Check certs to see if this is a retail or dev ticket. Treats unknown certs as being retail for now.
|
||||
if self.signature_issuer.find("Root-CA00000002-XS00000006") != -1:
|
||||
if (self.signature_issuer.find("Root-CA00000002-XS00000006") != -1 or
|
||||
self.signature_issuer.find("Root-CA00000002-XS00000004") != -1):
|
||||
self.is_dev = True
|
||||
else:
|
||||
self.is_dev = False
|
||||
|
Loading…
x
Reference in New Issue
Block a user