久久久久久久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 證書的安全性?的處理方法,對(duì)大家解決問(wèn)題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)吧!

                  問(wèn)題描述

                  限時(shí)送ChatGPT賬號(hào)..

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

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

                  我創(chuàng)建了一個(gè)應(yīng)用程序,我在其中調(diào)用 NSURLConnection 委托方法以通過(guò)服務(wù)器發(fā)送請(qǐng)求.

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

                  也使用了 "canAuthenticateAgainstProtectionSpace" 方法,但是一旦建立連接就不會(huì)調(diào)用此方法.

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

                  我如何做到這一點(diǎn)?

                  推薦答案

                  iOS 無(wú)法提供對(duì)證書信息的非常精細(xì)的訪問(wèn)權(quán)限.您有兩個(gè)選擇:私有 API 或使用 OpenSSL 構(gòu)建您自己的評(píng)估器.

                  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() 獲得.我不確定您所說(shuō)的驗(yàn)證類型"是什么意思.

                  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 執(zhí)行此操作,您可以使用 SecCertificateCopyData() 獲取 DER 數(shù)據(jù),然后自己解析所有內(nèi)容.

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

                  我建議就這個(gè)問(wèn)題打開一個(gè)雷達(dá) (bugreporter.apple.com).無(wú)法訪問(wèn)有關(guān)證書的基本信息是一個(gè)嚴(yán)重的問(wèn)題.

                  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 中提取證書的示例代碼,請(qǐng)參閱 第 11 章示例代碼 來(lái)自 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);
                    ...
                  

                  此時(shí),cert 持有您的葉子證書.

                  At this point, cert holds your leaf certificate.

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

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

                  相關(guān)文檔推薦

                  How to animate a UIImageview to display fullscreen by tapping on it?(如何通過(guò)點(diǎn)擊動(dòng)畫 UIImageview 以顯示全屏?)
                  To stop segue and show alert(停止 segue 并顯示警報(bào))
                  iOS 5 storyboard, programmatically determine path(iOS 5 故事板,以編程方式確定路徑)
                  Icon already includes gloss effects(圖標(biāo)已經(jīng)包含光澤效果)
                  How does UIEdgeInsetsMake work?(UIEdgeInsetsMake 是如何工作的?)
                  UIProgressView and Custom Track and Progress Images (iOS 5 properties)(UIProgressView 和自定義跟蹤和進(jìn)度圖像(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>
                            主站蜘蛛池模板: 日韩视频免费 | 亚洲永久 | 一区二区国产在线 | 久久国产三级 | 日韩av在线一区 | 亚洲高清视频在线观看 | 91极品视频 | 国产目拍亚洲精品99久久精品 | 亚洲成人免费在线观看 | 一级毛片在线播放 | 一区福利视频 | 成人精品一区二区 | 国产成人精品一区二 | 在线不卡视频 | 久久久久成人精品 | av在线天堂网 | 在线视频 亚洲 | 亚洲精品一区二区另类图片 | 精品视频在线播放 | 性一区 | 成人免费大片黄在线播放 | 黄色日批视频 | 国产高清一区二区三区 | 91免费在线| 午夜视频在线免费观看 | 国产精品久久久亚洲 | av免费网站在线观看 | 九九亚洲精品 | 99久久精品国产麻豆演员表 | 亚洲人va欧美va人人爽 | 国产黄色大片网站 | 国产精品福利在线观看 | 亚洲精品自在在线观看 | 中文字幕久久精品 | 精品国产乱码久久久久久闺蜜 | 国产成人一区二区三区久久久 | 久久这里只有精品首页 | 日本久久黄色 | 日本成人区| 久久久久久久久久久久91 | 成人国产精品久久 |