久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

<i id='rpvil'><tr id='rpvil'><dt id='rpvil'><q id='rpvil'><span id='rpvil'><b id='rpvil'><form id='rpvil'><ins id='rpvil'></ins><ul id='rpvil'></ul><sub id='rpvil'></sub></form><legend id='rpvil'></legend><bdo id='rpvil'><pre id='rpvil'><center id='rpvil'></center></pre></bdo></b><th id='rpvil'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='rpvil'><tfoot id='rpvil'></tfoot><dl id='rpvil'><fieldset id='rpvil'></fieldset></dl></div>

<small id='rpvil'></small><noframes id='rpvil'>

  • <legend id='rpvil'><style id='rpvil'><dir id='rpvil'><q id='rpvil'></q></dir></style></legend>
  • <tfoot id='rpvil'></tfoot>

      • <bdo id='rpvil'></bdo><ul id='rpvil'></ul>

        如何在 iOS 中檢查 SSL 證書的安全性?

        How to check the security of the SSL certificate in iOS?(如何在 iOS 中檢查 SSL 證書的安全性?)

        • <bdo id='hlmON'></bdo><ul id='hlmON'></ul>

          <small id='hlmON'></small><noframes id='hlmON'>

              <i id='hlmON'><tr id='hlmON'><dt id='hlmON'><q id='hlmON'><span id='hlmON'><b id='hlmON'><form id='hlmON'><ins id='hlmON'></ins><ul id='hlmON'></ul><sub id='hlmON'></sub></form><legend id='hlmON'></legend><bdo id='hlmON'><pre id='hlmON'><center id='hlmON'></center></pre></bdo></b><th id='hlmON'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='hlmON'><tfoot id='hlmON'></tfoot><dl id='hlmON'><fieldset id='hlmON'></fieldset></dl></div>

              <tfoot id='hlmON'></tfoot>
                    <tbody id='hlmON'></tbody>
                  <legend id='hlmON'><style id='hlmON'><dir id='hlmON'><q id='hlmON'></q></dir></style></legend>
                  本文介紹了如何在 iOS 中檢查 SSL 證書的安全性?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  限時送ChatGPT賬號..

                  我想檢查 URL 中是否存在 SSL 證書,還想檢查其版本和驗證類型.

                  I wanna check whether the SSL certificate is present in the URL also wants to check its version and validation type.

                  我創建了一個應用程序,我在其中調用 NSURLConnection 委托方法以通過服務器發送請求.

                  I have created a application where I am calling the NSURLConnection delegate methods to send request over a server.

                  也使用了 "canAuthenticateAgainstProtectionSpace" 方法,但是一旦建立連接就不會調用此方法.

                  Also used "canAuthenticateAgainstProtectionSpace" method, but this method is not getting called once the connection is established.

                  我如何做到這一點?

                  推薦答案

                  iOS 無法提供對證書信息的非常精細的訪問權限.您有兩個選擇:私有 API 或使用 OpenSSL 構建您自己的評估器.

                  iOS does not give you very granular access to certificate information. You have two choices: private APIs or build your own evaluator with OpenSSL.

                  您可以在opensource 中看到私有證書功能代碼.該版本可從 SecCertificateVersion() 獲得.我不確定您所說的驗證類型"是什么意思.

                  You can see the private certificate functions in the opensource code. The version is available from SecCertificateVersion(). I'm not certain what you mean by "validation type" here.

                  要使用 OpenSSL 執行此操作,您可以使用 SecCertificateCopyData() 獲取 DER 數據,然后自己解析所有內容.

                  To do this with OpenSSL, you can get the DER data with SecCertificateCopyData() and then parse everything yourself.

                  我建議就這個問題打開一個雷達 (bugreporter.apple.com).無法訪問有關證書的基本信息是一個嚴重的問題.

                  I suggest opening a radar (bugreporter.apple.com) on this issue. The lack of access to basic information about the certificate is a serious problem.

                  如果您正在尋找從 NSURLConnection 中提取證書的示例代碼,請參閱 第 11 章示例代碼 來自 iOS:PTL:

                  If you're looking for sample code that extracts the certificate from the NSURLConnection, see the Chapter 11 sample code from iOS:PTL:

                  - (void)connection:(NSURLConnection *)connection
                    willSendRequestForAuthenticationChallenge:
                    (NSURLAuthenticationChallenge *)challenge
                  {
                    NSURLProtectionSpace *protSpace = challenge.protectionSpace;
                    SecTrustRef trust = protSpace.serverTrust;
                    ...
                      SecCertificateRef cert = SecTrustGetCertificateAtIndex(trust, 0);
                    ...
                  

                  此時,cert 持有您的葉子證書.

                  At this point, cert holds your leaf certificate.

                  這篇關于如何在 iOS 中檢查 SSL 證書的安全性?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  How to animate a UIImageview to display fullscreen by tapping on it?(如何通過點擊動畫 UIImageview 以顯示全屏?)
                  To stop segue and show alert(停止 segue 并顯示警報)
                  iOS 5 storyboard, programmatically determine path(iOS 5 故事板,以編程方式確定路徑)
                  Icon already includes gloss effects(圖標已經包含光澤效果)
                  How does UIEdgeInsetsMake work?(UIEdgeInsetsMake 是如何工作的?)
                  UIProgressView and Custom Track and Progress Images (iOS 5 properties)(UIProgressView 和自定義跟蹤和進度圖像(iOS 5 屬性))
                  • <i id='N6eSI'><tr id='N6eSI'><dt id='N6eSI'><q id='N6eSI'><span id='N6eSI'><b id='N6eSI'><form id='N6eSI'><ins id='N6eSI'></ins><ul id='N6eSI'></ul><sub id='N6eSI'></sub></form><legend id='N6eSI'></legend><bdo id='N6eSI'><pre id='N6eSI'><center id='N6eSI'></center></pre></bdo></b><th id='N6eSI'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='N6eSI'><tfoot id='N6eSI'></tfoot><dl id='N6eSI'><fieldset id='N6eSI'></fieldset></dl></div>

                      <tfoot id='N6eSI'></tfoot>
                    1. <small id='N6eSI'></small><noframes id='N6eSI'>

                        • <bdo id='N6eSI'></bdo><ul id='N6eSI'></ul>

                            <legend id='N6eSI'><style id='N6eSI'><dir id='N6eSI'><q id='N6eSI'></q></dir></style></legend>

                              <tbody id='N6eSI'></tbody>
                            主站蜘蛛池模板: 亚洲精品久久久久久国产精华液 | 成人亚洲网站 | 久久99国产精一区二区三区 | 国产成人精品999在线观看 | 久久新视频 | 精品国产亚洲一区二区三区大结局 | a级黄色毛片免费播放视频 国产精品视频在线观看 | 91日日| 久久久久久高清 | 99视频免费| 欧美自拍一区 | 精品久久久精品 | 99精品视频在线 | 青青草在线播放 | 久色视频在线观看 | 黄色网址免费在线观看 | 日本亚洲一区二区 | 成人三级在线观看 | 看毛片网站 | 亚洲成人久久久 | 成人精品视频在线观看 | 亚洲高清久久 | 一区二区三区免费在线观看 | 日韩精品一区二区三区视频播放 | 亚洲交性 | 亚洲国产一区二区三区, | 精品成人在线视频 | k8久久久一区二区三区 | 国产精品高清一区二区三区 | 精品一区二区三区在线视频 | www.成人免费视频 | 狠狠综合网| 在线成人免费av | 欧美a区| 亚洲精品免费观看 | 天堂在线www | 手机三级电影 | 伊人电影院av | 欧美网站一区二区 | 中文字幕一区二区三区在线乱码 | 久久av一区二区三区 |