菜鸟教程小白 发表于 2022-12-13 04:44:18

ios - iOS7 的 Apple 收据验证。将 libcrypto.a 和 libssl.a 库添加到 XCode 项目


                                            <p><p>我需要验证应用内购买收据。 Apple 发布了一种新的收据方法,现在收据可以存储在设备上的 NSBundle 中。它需要将 OpenSSL 和 ASN1 添加到 XCode 项目中,以便对收据进行编码和验证。我一直在网上寻找可能的解决方案。没有运气(。如果有人已经这样做了,请帮忙。
1.我需要使用OpenSSL和ASN1,添加库libcrypto.a和libssl.a
2.编写iOS7收据验证代码。</p></p>
                                    <br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
                                            <p><p>我从这里使用 ASN1:<a href="http://sourceforge.net/projects/asn1c/" rel="noreferrer noopener nofollow">http://sourceforge.net/projects/asn1c/</a> </p>

<p>这是我用于 OpenSSL 的:<a href="http://www.cvursache.com/2013/08/13/How-To-Build-openssl-For-iOS/" rel="noreferrer noopener nofollow">http://www.cvursache.com/2013/08/13/How-To-Build-openssl-For-iOS/</a> </p>

<p>关于使用 OpenSSL 和 ASN1 的深入信息,我想知道您是否找到了全面的资源。我从各种来源拼凑出我能做到的东西。我看了看:</p>

<ol>
<li>WWDC 2013session “使用收据保护您的数字销售”。</li>
<li> <a href="https://github.com/rmaddy/VerifyStoreReceiptiOS" rel="noreferrer noopener nofollow">https://github.com/rmaddy/VerifyStoreReceiptiOS</a> </li>
<li> <a href="http://www.umich.edu/~x509/ssleay/x509_store.html" rel="noreferrer noopener nofollow">http://www.umich.edu/~x509/ssleay/x509_store.html</a> </li>
<li> <a href="https://developer.apple.com/library/ios/releasenotes/General/ValidateAppStoreReceipt/Chapters/ValidateLocally.html" rel="noreferrer noopener nofollow">https://developer.apple.com/library/ios/releasenotes/General/ValidateAppStoreReceipt/Chapters/ValidateLocally.html</a> </li>
<li> <a href="https://stackoverflow.com/questions/8630300/how-to-print-a-bio-object-in-opensl-or-print-time-from-asn1-type-object" rel="noreferrer noopener nofollow">How to print a BIO object in opensl or print time from ASN1_TYPE object</a> </li>
<li> <a href="http://lionet.info/asn1c/asn1c-usage.html#SECTION02211000000000000000" rel="noreferrer noopener nofollow">http://lionet.info/asn1c/asn1c-usage.html#SECTION02211000000000000000</a> </li>
<li> <a href="https://developer.apple.com/library/mac/releasenotes/General/ValidateAppStoreReceipt/Introduction.html" rel="noreferrer noopener nofollow">https://developer.apple.com/library/mac/releasenotes/General/ValidateAppStoreReceipt/Introduction.html</a> </li>
<li> <a href="https://developer.apple.com/library/ios/releasenotes/General/ValidateAppStoreReceipt/Introduction.html" rel="noreferrer noopener nofollow">https://developer.apple.com/library/ios/releasenotes/General/ValidateAppStoreReceipt/Introduction.html</a> </li>
<li> <a href="https://stackoverflow.com/questions/19435259/ia5string-asn-1-coding-format-in-app-purchase-receipt-validation-and-decoding" rel="noreferrer noopener nofollow">IA5STRING ASN.1 coding format: in-app purchase receipt validation and decoding</a> </li>
<li> <a href="https://stackoverflow.com/questions/14447693/how-to-format-convert-the-string-2013-01-27t0231470800-into-nsdate" rel="noreferrer noopener nofollow">How to format convert the string 2013-01-27T02:31:47+08:00 into NSDate</a> </li>
<li> <a href="http://luca.ntop.org/Teaching/Appunti/asn1.html" rel="noreferrer noopener nofollow">http://luca.ntop.org/Teaching/Appunti/asn1.html</a> </li>
</ol></p>
                                   
                                                <p style="font-size: 20px;">关于ios - iOS7 的 Apple 收据验证。将 libcrypto.a 和 libssl.a 库添加到 XCode 项目,我们在Stack Overflow上找到一个类似的问题:
                                                        <a href="https://stackoverflow.com/questions/19386433/" rel="noreferrer noopener nofollow" style="color: red;">
                                                                https://stackoverflow.com/questions/19386433/
                                                        </a>
                                                </p>
                                       
页: [1]
查看完整版本: ios - iOS7 的 Apple 收据验证。将 libcrypto.a 和 libssl.a 库添加到 XCode 项目