NEAppProxyProvider VPN does not work on iOS 10 Beta

Hello,


We have working NEAppProxyProvider supporting both TCP and UDP and it works well on iOS 9.


But when we test it on iOS 10 Beta, TLS authentication fails and we get error:


nw_coretls_read_one_record tls_handshake_process: [-9824] for NWTCPConenction.


When we analyzed the wireshark dump, it looks like the Client Certificate is not set even if we provide it in: -


(void)provideIdentityForConnection:(NWTCPConnection *)connection completionHandler:(void (^)(SecIdentityRef identity, NSArray<id> *certificateChain))completion.


The same piece of code works fine on iOS 9.


Is there any change in the way we need to set the certificate for TLS on NWTCPConnection?


Thanks and regards,

Sanjay.

Accepted Reply

Any update regarding this problem (r. 26973178)?

We believe this is fixed in 10.0b3. Please re-test with that release.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

Replies

Is there any change in the way we need to set the certificate for TLS on NWTCPConnection?

No. You should file a bug about this. Please post your bug number, just for the record.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

Hi,


I have filed bug: '26973178' for this issue on iOS 10 Beta.


Thanks,

Sanjay

Any update regarding this problem?

Any update regarding this problem (r. 26973178)?

We believe this is fixed in 10.0b3. Please re-test with that release.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

Yes this is fixed in iOS10 Beta 3. But again after handsheke is complete and we get NWTCPConnection status to Connected and connection is marked as viable to read suddenly we get IPC detached and provider is stopped.

But again after handsheke is complete and we get NWTCPConnection status to Connected and connection is marked as viable to read suddenly we get IPC detached and provider is stopped.

Bummer. Please file a new bug with these new symptoms and, as always, post your bug number here, just for the record.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

Bug: 27475152 is raised for this.

Sanjay


Did you get any resolution to bug 27475152 ?

I am currently trying to get version 1.3 of the SimpleTunnel example running on IOS10 using Xcode 8.1 and after establishing a connection the first use of NWTCPConnection.write causes an EXC_BREAKPOINT (SIGTRAP).


Regards


Mark