Giter Club home page Giter Club logo

ymhttpstest's Introduction

HTTPS信任SSL证书和自签名证书

ymhttpstest's People

Contributors

songminzh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

ymhttpstest's Issues

运行报错

如下:
2016-08-29 10:00:49.045 HttpsTest[1493:51322] *** Assertion failure in -ViewController connection:didReceiveAuthenticationChallenge:, /Users/issuser/Downloads/HttpsTest-master/HttpsTest/ViewController.m:65
2016-08-29 10:00:49.048 HttpsTest[1493:51322] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'caCert is nil'
*** First throw call stack:
(
0 CoreFoundation 0x0000000100abad85 exceptionPreprocess + 165
1 libobjc.A.dylib 0x000000010052edeb objc_exception_throw + 48
2 CoreFoundation 0x0000000100ababea +[NSException raise:format:arguments:] + 106
3 Foundation 0x0000000100178e1e -[NSAssertionHandler handleFailureInFunction:file:lineNumber:description:] + 169
4 HttpsTest 0x000000010002521d -[ViewController connection:didReceiveAuthenticationChallenge:] + 1437
5 CFNetwork 0x0000000102c56a36 __65-[NSURLConnectionInternal _withConnectionAndDelegate:onlyActive:]_block_invoke + 69
6 CFNetwork 0x0000000102c569da -[NSURLConnectionInternal _withConnectionAndDelegate:onlyActive:] + 199
7 CFNetwork 0x0000000102c56b2f -[NSURLConnectionInternal _withActiveConnectionAndDelegate:] + 48
8 CFNetwork 0x0000000102c2a8c2 -[NSURLConnectionInternalConnection(Internal) sendCFChallenge:toSelector:] + 84
9 CFNetwork 0x0000000102ac526c ___ZN27URLConnectionClient_Classic51_delegate_willSendRequestForAuthenticationChallengeEP19_CFURLAuthChallenge_block_invoke + 731
10 CFNetwork 0x0000000102bb1d75 ___ZN27URLConnectionClient_Classic18_withDelegateAsyncEPKcU13block_pointerFvP16_CFURLConnectionPK33CFURLConnectionClientCurrent_VMaxE_block_invoke_2 + 100
11 libdispatch.dylib 0x00000001032603eb _dispatch_client_callout + 8
12 libdispatch.dylib 0x000000010324248b _dispatch_block_invoke + 716
13 CFNetwork 0x0000000102aaa60a _ZN19RunloopBlockContext13_invoke_blockEPKvPv + 24
14 CoreFoundation 0x00000001009b3894 CFArrayApplyFunction + 68
15 CFNetwork 0x0000000102aaa503 _ZN19RunloopBlockContext7performEv + 137
16 CFNetwork 0x0000000102aaa3bc _ZN17MultiplexerSource7performEv + 282
17 CFNetwork 0x0000000102aaa1de _ZN17MultiplexerSource8_performEPv + 72
18 CoreFoundation 0x00000001009e0301 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION
+ 17
19 CoreFoundation 0x00000001009d622c __CFRunLoopDoSources0 + 556
20 CoreFoundation 0x00000001009d56e3 __CFRunLoopRun + 867
21 CoreFoundation 0x00000001009d50f8 CFRunLoopRunSpecific + 488
22 GraphicsServices 0x000000010433aad2 GSEventRunModal + 161
23 UIKit 0x0000000100f3cf09 UIApplicationMain + 171
24 HttpsTest 0x000000010002669f main + 111
25 libdyld.dylib 0x000000010329492d start + 1
26 ??? 0x0000000000000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException

ef99c1a9-ee6c-40fe-94fc-0767fb5aca22

Info.plist文件设置问题

7c309b3a-9360-4b9e-834d-8b0afe0b1097

如果已经支持https了,为什么plist文件中还会设置Allow Arbitrary Loads为YES?或者说现在的支持https现像可能是Allow Arbitrary Loads在起作用,与didReceiveAuthenticationChallenge里的内容无关?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.