Closed alikud closed 11 months ago
maybe it can help someone
f1 = open("/Users/alex/Downloads/AppleIncRootCertificate.cer", 'rb').read()
f2 = open("/Users/alex/Downloads/AppleComputerRootCertificate.cer", 'rb').read()
f3 = open("/Users/alex/Downloads/AppleRootCA-G2.cer", 'rb').read()
f4 = open("/Users/alex/Downloads/AppleRootCA-G3.cer", 'rb').read()
ca = [f1,f2,f3,f4]
client = AppStoreServerAPIClient(private_key, key_id, issuer_id, bundle_id, environment)
from base64 import b64decode
try:
verifier = SignedDataVerifier(root_certificates=[f1,f2,f3,f4], enable_online_checks=False, environment=Environment.SANDBOX, bundle_id=bundle_id,app_apple_id=bundle_id)
verifier.verify_and_decode_signed_transaction(signed_transaction=ey.........)
except......
Hey, i have problem, that can not decode signedTransactionInfo , it is not base64 string, it is not posible to decode with jwt.decode, how i can do that ? Where i can find root certificates? Why it so difficult to simply decode string ?