I don't think that I changed anything, but did the XS studio updates that were on the stable channel. Got lots of new icons and fonts, but unfortunately I think it broke my https api calls. It throws this exception on every call to my api now. I tried the Alpha Channel updates to see if things were different. I also noticed some new settings in the iOS project, but changing them doesn't seem to affect this error. Anyone else seeing this, and have a work around?
2016-06-08 11:34:12.056 APPNAME.Touch[261:14873] Exception:-264109:Mono.Security.Interface.TlsException: CertificateUnknown at Security.Tls.MobileAuthenticatedStream.ProcessAuthentication (System.Net.LazyAsyncResult lazyResult) [0x00077] in /Users/builder/data/lanes/1381/3afb4af5/source/maccore/src/Security/Tls/MobileAuthenticatedStream.cs:206 at Security.Tls.MobileAuthenticatedStream.AuthenticateAsClient (System.String targetHost, System.Security.Cryptography.X509Certificates.X509CertificateCollection clientCertificates, System.Security.Authentication.SslProtocols enabledSslProtocols, System.Boolean checkCertificateRevocation) [0x0000c] in /Users/builder/data/lanes/1381/3afb4af5/source/maccore/src/Security/Tls/MobileAuthenticatedStream.cs:114 at Mono.Net.Security.Private.MonoSslStreamWrapper.AuthenticateAsClient (System.String targetHost, System.Security.Cryptography.X509Certificates.X509CertificateCollection clientCertificates, System.Security.Authentication.SslProtocols enabledSslProtocols, System.Boolean checkCertificateRevocation) [0x00000] in /Users/builder/data/lanes/1381/3afb4af5/source/maccore/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/mcs/class/System/Mono.Net.Security/MonoSslStreamWrapper.cs:75 at Mono.Net.Security.MonoTlsStream.CreateStream (System.Byte[] buffer) [0x0001e] in /Users/builder/data/lanes/1381/3afb4af5/source/maccore/_ios-build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/mcs/class/System/Mono.Net.Security/MonoTlsStream.cs:99
Switching SSL/TLS implementation from Apple to Mono in the project settings (iOS project>Build>iOS Build) fixes this issue.
Answers
After a rebuild and a restart, the Alpha channel XS seems to work for me. I will go back to stable to try and reproduce it.
Went back to the stable XS channel and the issue did come back. I guess for now Im going to stick to the Alpha channel.
I also have the same problem. XS 5.2 worked fine and 6.0 broke my service. I get CertificateUnknown on one of ours Azure service which works fine on Android, but not on iOS.
I'm also having the issue...
Using the Modern Http Client and the latest stable, from today...
I'm also having the same issue after updating to Xamarin Studio 6.0.
=== Xamarin Studio Business ===
Version 6.0 (build 5174)
Installation UUID: 9fd4bd3c-838f-418e-b10b-afadee8f82fd
Runtime:
Mono 4.4.0 (mono-4.4.0-branch-c7-baseline/5995f74) (64-bit)
GTK+ 2.24.23 (Raleigh theme)
=== Xamarin.Profiler ===
Not Installed
=== Xamarin.Android ===
Version: 6.1.0.71 (Xamarin Business)
Android SDK: /Users/erlendlund/Library/Developer/Xamarin/android-sdk-macosx
Supported Android versions:
2.3 (API level 10)
4.0.3 (API level 15)
4.1 (API level 16)
4.4 (API level 19)
5.0 (API level 21)
5.1 (API level 22)
6.0 (API level 23)
SDK Tools Version: 25.1.3
SDK Platform Tools Version: 23.1
SDK Build Tools Version: 23.0.3
Java SDK: /usr
java version "1.7.0_51"
Java(TM) SE Runtime Environment (build 1.7.0_51-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.51-b03, mixed mode)
Android Designer EPL code available here:
https://github.com/xamarin/AndroidDesigner.EPL
=== Xamarin Android Player ===
Version: 0.4.4
Location: /Applications/Xamarin Android Player.app
=== Apple Developer Tools ===
Xcode 7.3.1 (10188.1)
Build 7D1014
=== Xamarin.iOS ===
Version: 9.8.0.323 (Xamarin Business)
Hash: 39ebb77
Branch: cycle7
Build date: 2016-06-01 21:23:15-0400
=== Xamarin.Mac ===
Not Installed
=== Build Information ===
Release ID: 600005174
Git revision: 694a75f040b7f2309bc43d4f78a3a6572ca898bf
Build date: 2016-06-01 17:28:08-04
Xamarin addins: 33f406fa2dcf214012c78cb846585f062b2e1d24
Build lane: monodevelop-lion-cycle7-baseline
=== Operating System ===
Mac OS X 10.11.5
Darwin SELENE.local 15.5.0 Darwin Kernel Version 15.5.0
Tue Apr 19 18:36:36 PDT 2016
root:xnu-3248.50.21~8/RELEASE_X86_64 x86_64
I have filed a bug: https://bugzilla.xamarin.com/show_bug.cgi?id=41653
This bug seem to have similar behaviour:
https://bugzilla.xamarin.com/show_bug.cgi?id=41207
Any updates? Downgrade to mono 4.2.4 didn't help, as Xamarin 6.0 requires 3.0+. And I cannot install 5.1 as it gives me error while login into account.
Switching SSL/TLS implementation from Apple to Mono in the project settings (iOS project>Build>iOS Build) fixes this issue.