I am sure I am missing a pretty elementary step - but - I'm at a loss. I can build a certificate using KeyChain Access, upload the CSR, download the Certificate from the developer portal website and sign Apple Wallet Passes all day long. No Problem.
So I thought I'd try to automate some processes with the AppStoreConnectAPI.
I want to download the certificate from the app store and use it to sigh passes instead of file on the disk.
So I find the right certificate from the API, and one of the token in there is a big byte stream called "certificateContent"... which I assumed would be the same binary data as what I uploaded (and whats on disc).
But it doesn't work - it "fails to sign".
I must be missing some step that is preventing me from being able to use that key. I have a feeling the a key or something is missing from the certificate I download from Apple's API.
Any ideas?