PJSIP TLS not working for iPhone - ios

I am trying to build a app using PJSIP library.
I am able to establish the connection successfully with UDP and TCP
when Connecting with TLS i receive unsupported Transport error (17160)
please help..

You should enable TLS transport by using OpenSSL, see:
http://trac.pjsip.org/repos/wiki/Getting-Started/iPhone#OpenSSLSuport
If you have problems building openssl, search 'openssl-xcode' in github.
configure:
./configure-iphone --with-ssl=your-openssl-lib-dir
You will see logs if SSL enabled.

Related

Reverse TCP for IOS device?

I'm trying to develop a react-native application, sometimes it is saying cannot connect to the development server. As I read that executing the react-native project in IOS doesn't needs reverse tcp to accept requests from a development server.
can we do a reverse tcp on an IOS device?
Thank you in advance.
adb means "Android Debug Bridge", its not for IOS devices

Swift - The certificate for this server is invalid

How can I fix this on iOS using Swift? When I'm making a server request I get the following error:
The certificate for this server is invalid. You might be connecting to a server that is pretending to be “...” which could put your confidential information at risk.
You just need to install the certificates on the iOS simulators
From Charles Documentation:
Quit your iOS Simulator. Launch Charles and go to the Help menu.
Choose the "SSL Proxying > Install Charles Root Certificate in iOS
Simulators" item. This will install your Charles Root Certificate into
all of your iOS Simulators. Now when you start the iOS Simulator, you
should be able to access SSL websites with Charles using SSL Proxyin
You are most probably trying to connect to server with self-signed ssl certificate. iOS does not like it.
Take a look at this post as an example: Swift SSL error with self signed certificate.
Other possible issue is a proxy configuration with something like Charles behind it.
More details will maybe help to identify the root of the issue...

Charles proxy doesn't work on my IOS device

Here's what I did so far:
Install Charles on my mac
Connect mac and iPhone to same WiFi network
Charles->Proxy->SSL Proxy Settings. Enable for *
General->About->Certificate Trust Settings and enable full trust for the Charles Proxy certificate.
Charles->Help->Install Charles Root Certificate on a Mobile Device
Configure iPhone to proxy to IP provided in step 3.
And then when I try to go to safari on my Iphone I get a "connection lost" error and It's impossible to browse.
Any solutions ?
I'm on IOS 11.4
I used to have the same problem when SSL Proxying on iOS device then I changed to the following steps and it works:
Install Root Certificate on my mac
Configure Wifi Proxy on iOS device to Charles:
Server: 172.16.1.191
Port: 8888
Open Safari on iOS device:
Browse to chls.pro/ssl to download and install the certificate
Install Charles CA Certificate on your device:
iOS ≥ 10.3: Setting app > General > Profiles > Select Charles CA > Install
iOS ≥ 12.2: Setting app > Profiles Downloaded > Select Charles CA > Install
Trust Charles CA Certificate on your device:
Setting app > General > About > Certificate Trust Settings > Switch ON on Charles CA
Honestly, this is based on the iOS Setup Guide of an app named Proxyman. They have similar features like Charles but the UX is better I suppose. Anw, hope it helps :)
I had the same issue yesterday and spent a lot of time trying all possible solutions. But, what worked for me was restarting my router and do all these steps again.
Note: In case you are not able to download the certificate on your iOS device by going to Safari browser (chls.pro/ssl), you can download the certificate from the Charles app on your mac, save in local, then send it to your iOS device and install from there.
Path for the same in Charles app is - Help -> SSL Proxying -> Save Charles Root Certificate
Go to the Wifi setting, Configure Proxy under HTTP PROXY to Manual.
Provide the Server IP from Charles and Port to 8888.
Browse to chls.pro/ssl to download and install the certificate in your phone.
Refer to the answer here: Cannot see iOS simulator traffic with charles proxy
Ensure that ATS is present for debug builds.

How to get Charles working with Xcode 7 on SSL connections?

I'm experiencing an issue with my newly installed Xcode 7 where even after installing an SSL certificate on the iOS simulators through Charles (Help > SSL Proxying > Install Charles Root Certificate in iOS Simulators), and explicitly allowing the domain of the server I'm querying in Charles, any attempts to listen in on SSL traffic results in failed connection.
Charles reports the following error:
SSLHandshake: Remote host closed connection during handshake You may
need to configure your browser or application to trust the Charles
Root Certificate. See SSL Proxying in the Help menu.
Xcode console reports:
2015-09-23 11:29:44.173 Citifyd[8352:449043] Error in registration.
Error: Error Domain=NSCocoaErrorDomain Code=3010
"REMOTE_NOTIFICATION_SIMULATOR_NOT_SUPPORTED_NSERROR_DESCRIPTION"
UserInfo={NSLocalizedDescription=REMOTE_NOTIFICATION_SIMULATOR_NOT_SUPPORTED_NSERROR_DESCRIPTION}
2015-09-23 11:29:44.483 Citifyd[8352:449381]
NSURLSession/NSURLConnection HTTP load failed
(kCFStreamErrorDomainSSL, -9802) 2015-09-23 11:29:44.509
Citifyd[8352:449043] API ERRROR Error Domain=NSURLErrorDomain
Code=-1200 "An SSL error has occurred and a secure connection to the
server cannot be made."
Things worked fine in Xcode 6 under the same setup - anyone have any ideas?
I solved the issue based on this thread:
https://forums.developer.apple.com/thread/4988
iOS 9 (which the Xcode 7 emulators run) has stricter requirements for SSL transport - from user "Poets" in the above thread:
iOS 9 forces connections that are using HTTPS to be TLS 1.2 to avoid
recent vulnerabilities. In iOS 8 even unencrypted HTTP connections
were supported, so that older versions of TLS didn't make any problems
either. As a workaround, you can add this code snippet to your
Info.plist:
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
This enables Charles to show you unencrypted traffic when using iOS 9 emulators. You'll likely want to disable this once you distribute your apps.

Debug BlackBerry App SSL Certificate Problems

We are testing a BlackBerry app that accesses a secure RESTful service.
One of our customers is getting an "Access Denied: Insecure SSL Request" error when trying to access our web service. The customer device is running OS6. We have not been able to reproduce this with an OS6 simulator. The cert is installed on the simulator that matches his device.
We have seen similar cert problems with OS5 devices and simulators. We are using a Root Level Certificate (Thawte Primary CA) that is not installed on BlackBerry OS5. We have been able to solve similar problems on the OS5 devices by manually installing the certificate.
The manual cert install fix works for accessing the service from the OS6 devices' browser, but we get a "Access Denied: Insecure SSL Request" error when trying a https operation from our app. We are not able to reproduce this on any of our devices.
Questions:
Does the "Access Denied: Insecure SSL Request" error indicate the customer's device isusing the BlackBerry Enterprise Server? All google results for this error indicate the BES.
This cert has a wildcard that points to our many sub-domains. Could switching to a cert that explicitly points to the problem domain solve this? We recently changed our certs, but they work fine on iOS, Android, IE, FireFox & Chrome.
Any there any code changes we can make to fix this? We are creating the connection using the HttpsConnection. We are developing using the Java 5.0 libaray.
What other steps would you recommend for trying to track down this problem?

Resources