cannot access to url because SSL error

Here is the error:


2018-07-20 02:39:21.994486+0800 RKClassroom[6123:64035] [BoringSSL] Function boringssl_session_errorlog: line 2866 [boringssl_session_handshake_continue] SSL_ERROR_SSL(1): operation failed within the library

2018-07-20 02:39:21.995935+0800 RKClassroom[6123:64035] [BoringSSL] Function boringssl_session_handshake_error_print: line 2805 boringssl ctx 0x7fe99d60f710: 140641385318672:error:10000410:SSL routines:OPENSSL_internal:SSLV3_ALERT_HANDSHAKE_FAILURE:/BuildRoot/Library/Caches/com.apple.xbs/Sources/boringssl_Sim/boringssl-109.50.14/ssl/tls_record.c:547:SSL alert number 40

2018-07-20 02:39:21.996771+0800 RKClassroom[6123:64035] [BoringSSL] Function boringssl_session_handshake_error_print: line 2805 boringssl ctx 0x7fe99d60f710: 140641385318672:error:1000009a:SSL routines:OPENSSL_internal:HANDSHAKE_FAILURE_ON_CLIENT_HELLO:/BuildRoot/Library/Caches/com.apple.xbs/Sources/boringssl_Sim/boringssl-109.50.14/ssl/handshake_client.c:946:

2018-07-20 02:39:21.997986+0800 RKClassroom[6123:64035] [BoringSSL] Function boringssl_context_get_os_status: line 4268 SSL_AD_HANDSHAKE_FAILURE

2018-07-20 02:39:22.004829+0800 RKClassroom[6123:64035] TIC TCP Conn Failed [1:0x60000016ad40]: 3:-9824 Err(-9824)

2018-07-20 02:39:22.005981+0800 RKClassroom[6123:64035] NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9824)

2018-07-20 02:39:22.006082+0800 RKClassroom[6123:64035] Task <88D1658F-B83C-42FA-923D-B2AD4D717EDA>.<1> HTTP load failed (error code: -1200 [3:-9824])

2018-07-20 02:39:22.006391+0800 RKClassroom[6123:63556] Task <88D1658F-B83C-42FA-923D-B2AD4D717EDA>.<1> finished with error - code: -1200


How could i solve it?

Accepted Reply

Looks like the server expected client certificate, but you didn't provide it, or something like that.

Replies

It is a bit difficult to tell what to do in your code if you don't show the code …

Looks like the server expected client certificate, but you didn't provide it, or something like that.