-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to make pre-shared key based wifi socket connection to server on iOS 13 Beta 7 #56
Comments
This is almost 100% not a
|
Finally, it works when passing PSK Identity on sec_protocol_options_set_pre_shared_key_selection_block Working code is below:
Am closing this issue :) |
@ranmyfriend I can connect for TLS 1.2 - PSK using NIOTSConnectionBootstrap. But not able to do it for TLS 1.3 after adding ciphersuites like below: sec_protocol_options_add_pre_shared_key(tlsOptions.securityProtocolOptions, psk as __DispatchData, identity as __DispatchData)
|
@kalaivanivelusamy |
@ranmyfriend thanx for the feedback. Actually server has strong cipher like CHACHA20_POLY1305_SHA256 and client is using 3 ciphersuites ( wireshark shows Am i missing any configuration in tlsoptions of this NIOTSConnectionBootstrap to support 1.3?
|
@kalaivanivelusamy |
Expected behavior
The handshake should happen on iOS 13
Actual behavior
Handshake is not happening and it failing due to the Error:
PSK_IDENTITY NOT FOUND
Note
Working fine on iOS 12 but it broke on iOS 13
Through OPEN SSL
Even I have tried with OpenSSL@1.1 and it works. and it says CONNECTED.
/usr/local/Cellar/openssl@1.1/1.1.1c/bin/openssl s_client -connect XXXXX:XXXX -psk 054dd7317f689a3425d5aadfd53771af7987be96 -psk_identity 1002535472 -no_tls1_3 -cipher PSK-AES256-CBC-SHA
Steps to reproduce
If possible, minimal yet complete reproducer code (or URL to code)
Extension Dispatch Data
Swift & OS version (output of
swift --version && uname -a
)Swift 5.0
iOS 13 Beta 7
Tried both Simulator as well as Device
Swift NIO 2.7.0
The text was updated successfully, but these errors were encountered: