This has been a pretty major headache: Trying to validate a receipt for an in-app purchase on iOS.
Recomendations:
- Use cocoapods OpenSSL-Universal pod to get openssl
- Copy Apple’s suggested code, but add the key missing call OpenSSL_add_all_digests() prior to PKCS7_verify()
- This last thing is what fixes the mysterious error that reads, “error:2107D06D:PKCS7 routines:PKCS7_BIO_ADD_DIGEST:unknown digest type”
Now, to explore the contents of my ASN1 package!