TLSv1.3 Not Supporting in iOS 17 - iOS

339 views Asked by At

I am trying to set my TLS version as 1.3 but unfortunately I am not able to do that. where can I set my TLS version in the code?

Before my server configuration was TLSv1.2 , in this I can connect the web-socket without any issue. After my server TLS version has been changed to TLSv1.3, now I am not able to connect the web-socket by using this Socket rocket Library.

Using Xcode 15.1, ios 17.1, Socket Rocket Library.

SRWebSocket *newWebSocket = [[SRWebSocket alloc] initWithURLRequest:mutableRequest];

newWebSocket.delegate = self;
[newWebSocket open];

Got the error response below,

Error Domain=NSOSStatusErrorDomain Code=-9836 "(null)" UserInfo={_kCFStreamErrorCodeKey=-9836, _kCFStreamErrorDomainKey=3}

Expecting Web-socket connection to happen for the server which is configured as TLSv1.3.

1

There are 1 answers

0
Paulw11 On

That library doesn't appear to support TLS 1.3.

iOS has native support for WebSockets now. You might like to use that instead.