I need to validate in-app purchase receipts. Apple has released a new approach for receipts, now the receipts can be stored on device in NSBundle. It requires OpenSSL and ASN1 be added to XCode project in order to encode and validate the receipts. I have been searching online for possible solution. No luck(. If anybody has done it already, please help. 1. I need to use OpenSSL and ASN1, add libraries libcrypto.a and libssl.a 2. Write a code for validating receipts for iOS7.
Asked
Active
Viewed 2,091 times
2 Answers
4
I used ASN1 from here: http://sourceforge.net/projects/asn1c/
This is what I used for OpenSSL: http://www.cvursache.com/2013/08/13/How-To-Build-openssl-For-iOS/
As for deep information on using OpenSSL, and ASN1, I'd like to know if you find a comprehensive source for that. I cobbled what I could together from various sources. I looked at:
- WWDC 2013 session "Using Receipts to Protect Your Digital Sales".
- https://github.com/rmaddy/VerifyStoreReceiptiOS
- http://www.umich.edu/~x509/ssleay/x509_store.html
- https://developer.apple.com/library/ios/releasenotes/General/ValidateAppStoreReceipt/Chapters/ValidateLocally.html
- How to print a BIO object in opensl or print time from ASN1_TYPE object
- http://lionet.info/asn1c/asn1c-usage.html#SECTION02211000000000000000
- https://developer.apple.com/library/mac/releasenotes/General/ValidateAppStoreReceipt/Introduction.html
- https://developer.apple.com/library/ios/releasenotes/General/ValidateAppStoreReceipt/Introduction.html
- IA5STRING ASN.1 coding format: in-app purchase receipt validation and decoding
- How to format convert the string 2013-01-27T02:31:47+08:00 into NSDate
- http://luca.ntop.org/Teaching/Appunti/asn1.html

Community
- 1
- 1

Chris Prince
- 7,288
- 2
- 48
- 66
0
I guess you will found what you are looking for here :
http://ataugeron.github.io/blog/blog/2013/09/23/app-store-receipt-validation-on-ios-7/

Camille G.
- 3,058
- 1
- 25
- 41
-
1Yeh, I've seen that link before. The link does not have detailed and deep information on using OpenSSL and ASN1. Alsoo, there is no explanation of adding libcrypto.a and libssl.a libraries to XCode project. – SubMarina Oct 16 '13 at 16:38
-
Aaand the site is gone. – Thomas Tempelmann Apr 15 '23 at 20:48