You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have moved my VS to a new Mac M1 - and in doing so I had to recreate Android emulators (running ARM - fast!!).
However, when I call information using TLS (either an image via https or a database sync. via wss) it fails with information about not being able to validate the TLS cert like:
However, the cert on the server is valid - and expires in more than one month (LetsEncrypt so it will be renewed before).
The solution runs fine on iOS so that also verifies the validity of the cert.
I have tried two emulatos running Android 10 and 12. Same issue.
Having searched around most of the day I came across some articles that could indicate that it was related to Visual Studio….
Original Comments
Feedback Bot on 3/17/2022, 10:48 PM:
We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.
john on 3/18/2022, 07:17 AM:
Further information. This is the stack trace from trying to show an image:
Image loading failed: https://fangst.dalsgaard-data.dk/kunder/dtu/fangstcb.nsf/photos/132ae8c7d4544d49a4be08bdeab8948a.jpg;1012x0
FFImageLoading.Exceptions.DownloadAggregateException: One or more errors occurred. (The SSL connection could not be established, see inner exception.) (The SSL connection could not be established, see inner exception.) (The SSL connection could not be established, see inner exception.) (The SSL connection could not be established, see inner exception.) ---> System.Net.Http.HttpRequestException: The SSL connection could not be established, see inner exception. ---> System.Security.Authentication.AuthenticationException: Authentication failed, see inner exception. ---> Mono.Btls.MonoBtlsException: Ssl error:1000007d:SSL routines:OPENSSL_internal:CERTIFICATE_VERIFY_FAILED
at /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/boringssl/ssl/handshake_client.c:1132at Mono.Btls.MonoBtlsContext.ProcessHandshake () [0x00042] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/mcs/class/System/Mono.Btls/MonoBtlsContext.cs:220at System.Threading.Tasks.ValueTask`1[TResult].get_Result () [0x0001b] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/corefx/src/Common/src/CoreLib/System/Threa03-18 15:14:03.531 V/mono-stdout(32703): at Mono.Net.Security.MobileAuthenticatedStream.ProcessHandshake (Mono.Net.Security.AsyncOperationStatus status, System.Boolean renegotiate) [0x000da] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/mcs/class/System/Mono.Net.Security/MobileAuthenticatedStream.cs:715
at (wrapper remoting-invoke-with-check) Mono.Net.Security.MobileAuthenticatedStream.ProcessHandshake(Mono.Net.Security.AsyncOperationStatus,bool)
at System.Net.Http.DecompressionHandler.SendAsync (System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken) [0x00080] in /Users/b03-18 15:14:03.531 V/mono-stdout(32703): at Mono.Net.Security.AsyncHandshakeRequest.Run (Mono.Net.Security.AsyncOperationStatus status) [0x00000] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/mcs/class/System/Mono.Net.Security/AsyncProtocolRequest.cs:289
a/2020-02/android/release/mcs/class/System/Mono.Net.Security/AsyncProtocolRequest.cs:223
--- End of inner exception stack trace ---
at Mono.Net.Security.MobileAuthenticatedStream.ProcessAuthentication (System.Boolean runSynchronously, Mono.Net.Security.MonoSslAuthenticationOptions options, System.Threading.CancellationToken cancellationToken) [0x0025c] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/mcs/class/System/Mono.Net.Security/MobileAuthenticatedStream.cs:310
at System.Net.Http.ConnectHelper.EstablishSslConnectionAsyncCore (System.IO.Stream stream, System.Net.Security.SslClientAuthenticationOptions sslOptions, System.Threading.CancellationToken cancellationToken) [0x0007b] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/corefx/src/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/ConnectHelper.cs:165
at /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/exte03-18 15:14:03.531 V/mono-stdout(32703): at System.Net.Http.ConnectHelper.EstablishSslConnectionAsyncCore (System.IO.Stream stream, System.Net.Security.SslClientAuthenticationOptions sslOptions, System.Threading.CancellationToken cancellationToken) [0x000f6] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/corefx/src/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/ConnectHelper.cs:176
at System.Threading.Tasks.ValueTask`1[TResult].get_Result () [0x0001b] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/corefx/src/Common/src/CoreLib/System/Threading/Tasks/ValueTask.cs:813at Mono.Net.Security.AsyncHandshakeRequest.Run (Mono.Net.Security.AsyncOperationStatus status) [0x00000] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/mcs/class/archive-mono/2020-02/android/release/external/corefx/src/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/HttpConnectionPool.cs:408at System.Threading.Tasks.ValueTask`1[TResult].get_Result () [0x0001b] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/corefx/src/Common/src/CoreLib/System/Threading/Tasks/ValueTask.cs:813
at System.Net.Http.HttpConnectionPool.WaitForCreatedConnectionAsync (System.Threading.Tasks.ValueTask`1[TResult] creationTask) [0x000a2] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/corefx/src/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/HttpConnectionPool.cs:543at System.Net.Http.ConnectHelper.EstablishSslConnectionAsyncCore (System.IO.Stream stream, System.Net.Security.SslClientAuthenti13
at System.Net.Http.HttpConnectionPool.SendWithRetryAsync (System.Net.Http.HttpRequestMessage request, System.Boolean doRequestAuth, System.Threading.CancellationToken cancellationToken) [0x0003f] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/corefx/src/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/HttpConnectionPool.cs:284at System.Net.Http.RedirectHandler.SendAsync (System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken) [0x00070] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/corefx/src/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/RedirectHandler.cs:32at System.Threading.Tasks.ValueTask`1[TResult].get_Result () [0x0001b] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/corefx/src/Common/src/CoreLib/System/Threading/Tas03-18 15:14:03.531 V/mono-stdout(32703): at System.Net.Http.HttpClient.FinishSendAsyncUnbuffered (System.Threading.Tasks.Task`1[TResult] sendTask, System.Net.Http.HttpRequestMessage request, System.Threading.CancellationTokenSource cts, System.Boolean disposeCts) [0x000b3] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/corefx/src/System.Net.Http/src/System/Net/Http/HttpClient.cs:531at FFImageLoading.Cache.DownloadCache.DownloadAsync (System.String url, System.Threading.CancellationToken token, System.Net.Http.HttpClient client, FFImageLoading.Work.TaskParameter parameters, FFImageLoading.DownloadInformation downloadInformation) [0x00142] in C:\projects\ffimageloading\source\FFImageLoading.Common\Cache\DownloadCache.cs:107at System.Net.Http.RedirectHandler.SendAsync (System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken) [0x00070] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/corefx/src/System.Net.Http/src/System/Net/Http/SocketsHttp03-1815:14:03.531 V/mono-stdout(32703): at FFImageLoading.Retry.DoAsync[T] (System.Func`1[TResult] action, System.TimeSpan retryInterval, System.Int32 retryCount, System.Action onRetry) [0x00047] in C:\projects\ffimageloading\source\FFImageLoading.Common\Helpers\Retry.cs:19
--- End of inner exception stack trace ---
at FFImageLoading.Retry.DoAsync[T] (System.Func`1[TResult] action, System.TimeSpan retryInterval, System.Int32 retryCount, System.Action onRetry) [0x0023b] in C:\projects\ffimageloading\source\FFImageLoading.Common\Helpers\Retry.cs:65at FFImageLoading.Cache.DownloadCache.DownloadAsync (System.String url, System.Threading.CancellationToken token, System.Net.Http.HttpClient client,on configuration, System.Threading.CancellationToken token) [0x00401] in C:\projects\ffimageloading\source\FFImageLoading.Common\Cache\DownloadCache.cs:57at FFImageLoading.DataResolvers.UrlDataResolver.Resolve (System.String identifier, FFImageLoading.Work.TaskParameter parameters, System.Threading.CancellationToken token) [0x00045] in C:\projects\ffimageloading\source\FFImageLoading.Common\DataResolvers\UrlDataResolver.cs:22at FFImageLoading.DataResolvers.WrappedDataResolver.Resolve (System.String identifier, FFImageLoading.Work.TaskParameter parameters, System.Threading.CancellationToken token) [0x0004e] in C:\projects\ffimageloading\source\FFImageLoading.Common\DataResolvers\WrappedDataResolver.cs:21at (wrapper remoting-invoke-with-check) Mono.Net.Security.MobileAuthenticatedStream.ProcessHandshake(Mono.Net.Security.AsyncOperationeLoaderTask.cs:618---> (Inner Exception #0) System.Net.Http.HttpRequestException: The SSL connection could not be established, see inner exception. ---> System.Security.Authentication.AuthenticationException: Authentication failed, see inner exception. ---> Mono.Btls.MonoBtlsException: Ssl error:1000007d:SSL routines:OPENSSL_internal:CERTIFICATE_VERIFY_FAILEDat /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/boringssl/ssl/handshake_client.c:1132at Mono.Btls.MonoBtlsContext.ProcessHandshake () [0x00042] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/mcs/class/System/Mono.Btls/MonoBtlsContext.cs:220at (wrapper remoting-invoke-with-check) Mono.Net.Security.MobileAuthenticatedStream.ProcessHandshake(Mono.Net.Security.AsyncOperationStatus,bool)
at Mono.Net.Security.MobileAuthenticatedStream.ProcessAuthentication (System.Boolean runSynchronously, Mono.Net.Security.MonoSslAuthenticationOptions options, System.Threading.CancellationToken cancellationToken) [0x0025c] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/rele03-1815:14:03.531 V/mono-stdout(32703): at Mono.Net.Security.AsyncHandshakeRequest.Run (Mono.Net.Security.AsyncOperationStatus status) [0x00000] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/mcs/class/System/Mono.Net.Security/AsyncProtocolRequest.cs:289at Mono.Net.Security.AsyncProtocolRequest.ProcessOperation (System.Threading.CancellationToken cancellationToken) [0x000fc] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/mcs/class/System/Mono.Net.Security/AsyncProtocolRequest.cs:223--- End of inner exception stack trace ---at System.Net.Http.ConnectHelper.EstablishSslConnectionAsyncCore (System.IO.Stream stream, System.Net.Security.SslClientAuthenticationOptions sslOptions, System.Threading.CancellationToken cancellationToken) [0x0007b] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/corefx/src/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/ConnectHelper.cs:165--- End of inner exception stack trace ---at System.Net.Http.HttpConnectionPool.WaitForCreatedConnectiony.SslClientAuthenticationOptions sslOptions, System.Threading.CancellationToken cancellationToken) [0x000f6] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/corefx/src/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/ConnectHelper.cs:176at System.Threading.Tasks.ValueTask`1[TResult].get_Result () [0x0001b] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/corefx/src/Common/src/CoreLib/System/Threading/Tasks/ValueTask.cs:813
at System.Net.Http.HttpConnectionPool.CreateConnectionAsync (System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken) [0x002d8] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/corefx/src/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/HttpConnectionPool.cs:408
at System.Net.Http.HttpConnectionPool.WaitForCreatedConnectionAsync (System.Threading.Tasks.ValueTask`1[TResult] creationTask) [0x000a2] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/corefx/src/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/HttpConnectionPool.cs:543at System.Net.Http.RedirectHandler.SendAsync (Syst03-1815:14:03.531 V/mono-stdout(32703): at System.Threading.Tasks.ValueTask`1[TResult].get_Result () [0x0001b] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/corefx/src/Common/src/CoreLib/System/Threading/Tasks/ValueTask.cs:813
at System.Net.Http.HttpClient.FinishSendAsyncUnbuffered (System.Threading.Tasks.Task`1[TResult] sendTask, System.Net.Http.HttpRequestMessage request, System.Threading.CancellationTokenSource cts, System.Boolean disposeCts) [0x000b3] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/corefx/src/Syn) [0x0003f] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/corefx/src/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/HttpConnectionPool.cs:284at System.Net.Http.RedirectHandler.SendAsync (System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken) [0x00070] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/corefx/src/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/RedirectHandler.cs:32at System.Net.Http.DecompressionHandler.SendAsync (System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken) [0x00080] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/corefx/src/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/DecompressionHandler.cs:48at FFImageLoading.Cache.DownloadCache+<>c__DisplayClass15_0.<DownloadAndCacheIfNeededAsync>b__0 () [0x00050] in C:\projects\ffimageloading\source\FFImageLoading.Common\Cache\DownloadCache.cs:58at Mono.Net.Security.MobileAuthenticatedStream.ProcessHandshake (Mono.Net.Security.AsyncOperationStatus status, System.Boolean renegotiate) [0x000da] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/mRetry.DoAsync[T] (System.Func`1[TResult] action, System.TimeSpan retryInterval, System.Int32 retryCount, System.Action onRetry) [0x00047] in C:\projects\ffimageloading\source\FFImageLoading.Common\Helpers\Retry.cs:19 <---
---> (Inner Exception #1) System.Net.Http.HttpRequestException: The SSL connection could not be established, see inner exception. ---> System.Security.Authentication.AuthenticationException: Authentication failed, see inner exception. ---> Mono.Btls.MonoBtlsException: Ssl error:1000007d:SSL routines:OPENSSL_internal:CERTIFICATE_VERIFY_FAILED
at /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/boringssl/ssl/handshake_client.c:1132
at Mono.Net.Security.MobileAuthenticatedStream.Pntext.cs:220
at Mono.Net.Security.MobileAuthenticatedStream.ProcessHandshake (Mono.Net.Security.AsyncOperationStatus status, System.Boolean renegotiate) [0x000da] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/mcs/class/System/Mono.Net.Security/MobileAuthenticatedStream.cs:715
at (wrapper remoting-invoke-with-check) Mono.Net.Security.MobileAuthenticatedStream.ProcessHandshake(Mono.Net.Security.AsyncOperationStatus,bool)
at Mono.Net.Security.AsyncHandshakeRequest.Run (Mono.Net.Security.AsyncOperationStatus status) [0x00000] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/mcs/class/System/Mono.Net.Security/AsyncProtocolRequest.cs:289
at System.Net.Http.ConnectHelper.EstablishSslConnectionAsyncCore (System.IO.Stream stream, System.Net.Security.SslClientAuthenticationOptions sslOe/archive-mono/2020-02/android/release/mcs/class/System/Mono.Net.Security/AsyncProtocolRequest.cs:223
--- End of inner exception stack trace ---
at Mono.Net.Security.MobileAuthenticatedStream.ProcessAuthentication (System.Boolean runSynchronously, Mono.Net.Security.MonoSslAuthenticationOptions options, System.Threading.CancellationToken cancellationToken) [0x0025c] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/mcs/class/System/Mono.Net.Security/MobileAuthenticatedStream.cs:310
at System.Threading.Tasks.ValueTask</span><span class="hljs-number">1</span>[TResult].get_Result () [<span class="hljs-number">0x0001b</span>] <span class="hljs-keyword">in</span> /<span class="hljs-keyword">Users</span>/buil165 <span class="hljs-comment">--- End of inner exception stack trace ---</span> <span class="hljs-keyword">at</span> System.Net.Http.ConnectHelper.EstablishSslConnectionAsyncCore (System.IO.Stream stream, System.Net.Security.SslClientAuthenticationOptions sslOptions, System.Threading.CancellationToken cancellationToken) [<span class="hljs-number">0x000f6</span>] <span class="hljs-keyword">in</span> /<span class="hljs-keyword">Users</span>/builder/jenkins/workspace/<span class="hljs-keyword">archive</span>-mono/<span class="hljs-number">2020</span><span class="hljs-number">-02</span>/android/<span class="hljs-keyword">release</span>/<span class="hljs-keyword">external</span>/corefx/src/System.Net.Http/src/<span class="hljs-keyword">System</span>/Net/<span class="hljs-keyword">Http</span>/SocketsHttpHandler/ConnectHelper.cs:<span class="hljs-number">176</span> <span class="hljs-keyword">at</span> System.Threading.Tasks.ValueTask<span class="hljs-string">1[TResult].get_Result () [0x0001b] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/corefx/src/Common/src/CoreLib/System/Threading/Tasks/ValueTask.cs:813
at System.Net.Http.HttpConnectionPool.SendWithRetryAsync (System.Net.Http.HttpRequestMessage request, System.Boolean doRequestAuth, System.Threading.CancellationToken cancellationToken) [0x0003f] in /Users/builder/jenkinins/workspace/archive-mono/2020-02/android/release/external/corefx/src/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/HttpConnectionPool.cs:408
at System.Threading.Tasks.ValueTask</span><span class="hljs-number">1</span>[TResult].get_Result () [<span class="hljs-number">0x0001b</span>] <span class="hljs-keyword">in</span> /<span class="hljs-keyword">Users</span>/builder/jenkins/workspace/<span class="hljs-keyword">archive</span>-mono/<span class="hljs-number">2020</span><span class="hljs-number">-02</span>/android/<span class="hljs-keyword">release</span>/<span class="hljs-keyword">external</span>/corefx/src/Common/src/CoreLib/<span class="hljs-keyword">System</span>/Threading/Tasks/ValueTask.cs:<span class="hljs-number">813</span> <span class="hljs-keyword">at</span> System.Net.Http.HttpConnectionPool.WaitForCreatedConnectionAsync (System.Threading.Tasks.ValueTask<span class="hljs-string">1[TResult] creationTask) [0x000a2] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/corefx/src/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/HttpConnectionPool.cs:543
at System.Net.Http.HttpClient.FinishSendAsyncUnbuffered (System.Threading.Tasks.TaskValueTask.cs:813
at System.Net.Http.HttpConnectionPool.SendWithRetryAsync (System.Net.Http.HttpRequestMessage request, System.Boolean doRequestAuth, System.Threading.CancellationToken cancellationToken) [0x0003f] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/corefx/src/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/HttpConnectionPool.cs:284
at System.Net.Http.RedirectHandler.SendAsync (System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken) [0x00070] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/corefx/src/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/RedirectHandler.cs:32
at System.Net.Http.HttpClient.FinishSendAsyncUnbuffered (System.Threading.Tasks.Task</span><span class="hljs-number">1</span>[TResult] sendTask, System.Net.Http.HttpRequestMessage request, System.Threading.CancellationTokenSource cts, System.Boolean disposeCts) [<span class="hljs-number">0x000b3</span>] <span class="hljs-keyword">in</span> /<span class="hljs-keyword">Users</span>/builder/jenkins/workspace/<span class="hljs-keyword">archive</span>-mono/<span class="hljs-number">2020</span><span class="hljs-number">-02</span>/android/<span class="hljs-keyword">release</span>/<span class="hljs-keyword">external</span>/corefx/src/System.Net.Http/src/<span class="hljs-keyword">System</span>/Net/<span class="hljs-keyword">Http</span>/HttpClient.cs:<span class="hljs-number">531</span> <span class="hljs-keyword">at</span> FFImageLoading.Cache.DownloadCache.DownloadAsync (System.String <span class="hljs-keyword">url</span>, System.Threading.CancellationToken token, System.Net.Http.HttpClient <span class="hljs-keyword">client</span>, FFImageLoading.Work.TaskParameter <span class="hljs-keyword">parameters</span>, FFImageLoading.DownloadInformation downloadInformation) [<span class="hljs-number">0x00142</span>] <span class="hljs-keyword">in</span> C:\projects\ffimageloading\<span class="hljs-keyword">source</span>\FFImageLoading.Common\<span class="hljs-keyword">Cache</span>\DownloadCache.cs:<span class="hljs-number">107</span> FFImageLoading.Exceptions.DownloadAggregateException: One <span class="hljs-keyword">or</span> more <span class="hljs-keyword">errors</span> occurred. (The SSL <span class="hljs-keyword">connection</span> could <span class="hljs-keyword">not</span> be established, see <span class="hljs-keyword">inner</span> exception.) (The SSL <span class="hljs-keyword">connection</span> could <span class="hljs-keyword">not</span> be established, see <span class="hljs-keyword">inner</span> exception.) (The SSL <span class="hljs-keyword">connection</span> could <span class="hljs-keyword">not</span> be established, see <span class="hljs-keyword">inner</span> exception.) (The SSL <span class="hljs-keyword">connection</span> could <span class="hljs-keyword">not</span> be established, see <span class="hljs-keyword">inner</span> exception.) <span class="hljs-comment">---> System.Net.Http.HttpRequestException: The SSL connection could not be established, see inner exception. ---> System.Security.Authentication.AuthenticationException: Authentication failed, see inner exception. ---> Mono.Btls.Mading.Cache.DownloadCache+<>c__DisplayClass15_0.<DownloadAndCacheIfNeededAsync>b__0 () [0x00050] in C:\projects\ffimageloading\source\FFImageLoading.Common\Cache\DownloadCache.cs:58 </span> <span class="hljs-keyword">at</span> FFImageLoading.Retry.DoAsync[T] (System.Func<span class="hljs-string">1[TResult] action, System.TimeSpan retryInterval, System.Int32 retryCount, System.Action onRetry) [0x00047] in C:\projects\ffimageloading\source\FFImageLoading.Common\Helpers\Retry.cs:19 <---
---> (Inner Exception #2) System.Net.Http.HttpRequestException: The SSL connection could not be established, see inner exception. ---> System.Security.Authentication.AuthenticationException: Authentication failed, see inner exception. ---> Mono.Btls.MonoBtlsException: Ssl error:1000007d:SSL routines:OPENSSL_internal:CERTIFICATE_VERIFY_FAILED
at Mono.Btls.MonoBtlsContext.ProcessHandshake () [0x00042] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/mcs/class/System/Mono.Btls/MonoBtlsContext.cs:220
at Mono.Net.Security.MobileAuthenticatedStream.ProcessHandshake (Mono.Net.Security.AsyncOperationStatus status, System.Boolean renegotiate) [0x000da] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/mcs/class/System/Mono.Net.Security/MobileAuthenticatedStream.cs:715
at (wrapper remoting-invoke-with-check) Mono.Net.Security.MobileAuthenticatedStream.ProcessHandshake(Mono.Net.Security.AsyncOperationStatus,bool)
at Mono.Net.Security.MobileAuthenticatedStream.ProcessAuthentication (System.Boolean runSynchronously, Mono.Net.Security.MonoSslAuthenticationOptions options, System.Threading.CancellationToken cancellationToken) [0x0025c] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/mcs/class/System/Mono.Net.S.Net.Security/AsyncProtocolRequest.cs:289
at Mono.Net.Security.AsyncProtocolRequest.ProcessOperation (System.Threading.CancellationToken cancellationToken) [0x000fc] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/mcs/class/System/Mono.Net.Security/AsyncProtocolRequest.cs:223
--- End of inner exception stack trace ---
at Mono.Net.Security.MobileAuthenticatedStream.ProcessAuthentication (System.Boolean runSynchronously, Mono.Net.Security.MonoSslAuthenticationOptions options, System.Threading.CancellationToken cancellationToken) [0x0025c] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/mcs/class/System/Mono.Net.Security/MobileAuthenticatedStream.cs:310
--- End of inner exception stack trace ---
at System.Net.Http.ConnectHelper.EstablishSslConnectionAsyncCore (System.IO.Stream stream, System.Net.Security.SslClientAuthenticationOptions sslOptions, System.Threading.CancellationToken cancellationToken) [0x000f6] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/corefx/src/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/ConnectHelper.cs:176
at System.Net.Http.HttpConnectionPool.WaitForCreatedConnectionAsync (System.Threading.Tasks.Vk.cs:813
at System.Net.Http.HttpConnectionPool.CreateConnectionAsync (System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken) [0x002d8] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/corefx/src/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/HttpConnectionPool.cs:408
at System.Threading.Tasks.ValueTask</span><span class="hljs-number">1</span>[TResult].get_Result () [<span class="hljs-number">0x0001b</span>] <span class="hljs-keyword">in</span> /<span class="hljs-keyword">Users</span>/builder/jenkins/workspace/<span class="hljs-keyword">archive</span>-mono/<span class="hljs-number">2020</span><span class="hljs-number">-02</span>/android/<span class="hljs-keyword">release</span>/<span class="hljs-keyword">external</span>/corefx/src/Common/src/CoreLib/<span class="hljs-keyword">System</span>/Threading/Tasks/ValueTask.cs:<span class="hljs-number">813</span> <span class="hljs-keyword">at</span> System.Net.Http.HttpConnectionPool.WaitForCreatedConnectionAsync (System.Threading.Tasks.ValueTask<span class="hljs-string">1[TResult] creationTask) [0x000a2] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/corefx/src/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/HttpConnectionPool.cs:543
at System.Net.Http.RedirectHandler.SendAsync (System.Net.Http.HttpRequestMessage 15:14:03.531 V/mono-stdout(32703): at System.Threading.Tasks.ValueTask</span><span class="hljs-number">1</span>[TResult].get_Result () [<span class="hljs-number">0x0001b</span>] <span class="hljs-keyword">in</span> /<span class="hljs-keyword">Users</span>/builder/jenkins/workspace/<span class="hljs-keyword">archive</span>-mono/<span class="hljs-number">2020</span><span class="hljs-number">-02</span>/android/<span class="hljs-keyword">release</span>/<span class="hljs-keyword">external</span>/corefx/src/Common/src/CoreLib/<span class="hljs-keyword">System</span>/Threading/Tasks/ValueTask.cs:<span class="hljs-number">813</span> <span class="hljs-keyword">at</span> System.Net.Http.HttpConnectionPool.SendWithRetryAsync (System.Net.Http.HttpRequestMessage request, System.Boolean doRequestAuth, System.Threading.CancellationToken cancellationToken) [<span class="hljs-number">0x0003f</span>] <span class="hljs-keyword">in</span> /<span class="hljs-keyword">Users</span>/builder/jenkins/workspace/<span class="hljs-keyword">archive</span>-mono/<span class="hljs-number">2020</span><span class="hljs-number">-02</span>/android/<span class="hljs-keyword">release</span>/<span class="hljs-keyword">external</span>/corefx/src/System.Net.Http/src/<span class="hljs-keyword">System</span>/Net/<span class="hljs-keyword">Http</span>/SocketsHttpHandler/HttpConnectionPool.cs:<span class="hljs-number">284</span> <span class="hljs-keyword">at</span> System.Net.Http.HttpClient.FinishSendAsyncUnbuffered (System.Threading.Tasks.Task<span class="hljs-string">1[TResult] sendTask, System.Net.Http.HttpRequestMessage request, System.Threading.CancellationTokenSource cts, System.Boolean disposeCts) [0x000b3] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/corefx/src/System.Net.Http/src/System/Net/HtirectHandler.cs:32
at System.Net.Http.DecompressionHandler.SendAsync (System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken) [0x00080] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/corefx/src/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/DecompressionHandler.cs:48
at System.Net.Http.HttpClient.FinishSendAsyncUnbuffered (System.Threading.Tasks.Task</span><span class="hljs-number">1</span>[TResult] sendTask, System.Net.Http.HttpRequestMessage request, System.Threading.CancellationTokenSource cts, System.Boolean disposeCts) [<span class="hljs-number">0x000b3</span>] <span class="hljs-keyword">in</span> /<span class="hljs-keyword">Users</span>/builder/jenkins/workspace/<span class="hljs-keyword">archive</span>-mono/<span class="hljs-number">2020</span><span class="hljs-number">-02</span>/android/<span class="hljs-keyword">release</span>/<span class="hljs-keyword">external</span>/corefx/src/System.Net.Http/src/<span class="hljs-keyword">System</span>/Net/<span class="hljs-keyword">Http</span>/HttpClient.cs:<span class="hljs-number">531</span> <span class="hljs-keyword">at</span> FFImageLoading.Cache.DownloadCache+<>c__DisplayClass15_0.<DownloadAndCacheIfNeededAsync>b__0 () [<span class="hljs-number">0x00050</span>] <span class="hljs-keyword">in</span> C:\projects\ffimageloading\<span class="hljs-keyword">source</span>\FFImageLoading.Common\<span class="hljs-keyword">Cache</span>\DownloadCache.cs:<span class="hljs-number">58</span> <span class="hljs-keyword">at</span> FFImageLoading.Retry.DoAsync[T] (System.Func<span class="hljs-string">1[TResult] action, System.TimeSpan retryInterval, System.Int32 retryCount, System.Action onRetry) [0x00047] in C:\projects\ffimageloading\source\FFImageLoading.Common\Helpers\Retry.cs:19 <---
at /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/boringssl/ssl/handshake_client.c:1132
at FFImageLoading.DataR03-18 15:14:03.531 V/mono-stdout(32703): at Mono.Btls.MonoBtlsContext.ProcessHandshake () [0x00042] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/mcs/class/System/Mono.Btls/MonoBtlsContext.cs:220
at Mono.Net.Security.MobileAuthenticatedStream.ProcessHandshake (Mono.Net.Security.AsyncOperationStatus status, System.Boolean renegotiate) [0x000da] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/mcs/class/System/Mono.Net.Security/MobileAuthenticatedStream.cs:715
at /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/boringssl/ss)
at Mono.Net.Security.AsyncHandshakeRequest.Run (Mono.Net.Security.AsyncOperationStatus status) [0x00000] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/mcs/class/System/Mono.Net.Security/AsyncProtocolRequest.cs:289
at Mono.Net.Security.AsyncProtocolRequest.ProcessOperation (System.Threading.CancellationToken cancellationToken) [0x000fc] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/mcs/class/System/Mono.Net.Security/AsyncProtocolRequest.cs:223
--- End of inner exception stack trace ---
at Mono.Net.Security.AsyncHandshakeRequest.Run (Mono.Net.Security.AsyncOperationStatus status) [0x00000] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/mcs/class/System/Mono.Net.S03-18 15:14:03.532 V/mono-stdout(32703): at System.Net.Http.ConnectHelper.EstablishSslConnectionAsyncCore (System.IO.Stream stream, System.Net.Security.SslClientAuthenticationOptions sslOptions, System.Threading.CancellationToken cancellationToken) [0x0007b] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/corefx/src/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/ConnectHelper.cs:165
--- End of inner exception stack trace ---
at System.Net.Http.ConnectHelper.EstablishSslConnectionAsyncCore (System.IO.Stream stream, System.Net.Security.SslClientAuthenticationOptions sslOptions, System.Threading.CancellationToken cancellationToken) [0x000f6] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/corefx/src/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/ConnectHelper.cs:176
at System.Threading.Tasks.ValueTask</span><span class="hljs-number">1</span>[TResult].get_Result () [<span class="hljs-number">0x0001b</span>] <span class="hljs-keyword">in</span> /<span class="hljs-keyword">Users</span>/builder/jenkins/workspace/<span class="hljs-keyword">archive</span>-mono/<span class="hljs-number">2020</span><span class="hljs-number">-02</span>/android/<span class="hljs-keyword">release</span>/<span class="hljs-keyword">external</span>/corefx/src/Common/src/CoreLib/<span class="hljs-keyword">System</span>/Threading/Tasks/ValueTask.cs:<span class="hljs-number">803</span><span class="hljs-number">-18</span> <span class="hljs-number">15</span>:<span class="hljs-number">14</span>:<span class="hljs-number">03.532</span> V/mono-stdout(<span class="hljs-number">32703</span>): <span class="hljs-keyword">at</span> System.Net.Http.HttpConnectionPool.CreateConnectionAsync (System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken) [<span class="hljs-number">0x002d8</span>] <span class="hljs-keyword">in</span> /<span class="hljs-keyword">Users</span>/builder/jenkins/workspace/<span class="hljs-keyword">archive</span>-mono/<span class="hljs-number">2020</span><span class="hljs-number">-02</span>/android/<span class="hljs-keyword">release</span>/<span class="hljs-keyword">external</span>/corefx/src/System.Net.Http/src/<span class="hljs-keyword">System</span>/Net/<span class="hljs-keyword">Http</span>/SocketsHttpHandler/HttpConnectionPool.cs:<span class="hljs-number">408</span> <span class="hljs-keyword">at</span> System.Threading.Tasks.ValueTask<span class="hljs-string">1[TResult].get_Result () [0x0001b] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/corefx/src/Common/src/CoreLib/System/Threading/Tasks/ValueTask.cs:813
at System.Threading.Tasks.ValueTask</span><span class="hljs-number">1</span>[TResult].get_Result () [<span class="hljs-number">0x0001b</span>] <span class="hljs-keyword">in</span> /<span class="hljs-keyword">Users</span>/builder/jenkins/workspace/<span class="hljs-keyword">archive</span>-mono/<span class="hljs-number">2020</span><span class="hljs-number">-02</span>/android/<span class="hljs-keyword">release</span>/<span class="hljs-keyword">external</span>/corefx/src/Common/src/CoreLib/<span class="hljs-keyword">System</span>/Threading/Tasks/ValueTask.cs:<span class="hljs-number">813</span> <span class="hljs-keyword">at</span> System.Net.Http.HttpConnectionPool.SendWithRetryAsync (System.Net.Http.HttpRequestMessage request, System.Boolean doRequestAuth, System.Threading.CancellationToken cancellationToken) [<span class="hljs-number">0x0003f</span>] <span class="hljs-keyword">in</span> /<span class="hljs-keyword">Users</span>/builder/jenkins/workspace/<span class="hljs-keyword">archive</span>-mono/<span class="hljs-number">2020</span><span class="hljs-number">-02</span>/android/<span class="hljs-keyword">release</span>/<span class="hljs-keyword">external</span>/corefx/src/System.Net.Http/src/<span class="hljs-keyword">System</span>/Net/<span class="hljs-keyword">Http</span>/SocketsHttpHandler/HttpConnectionPool.cs:<span class="hljs-number">284</span> <span class="hljs-keyword">at</span> System.Net.Http.DecompressionHandler.SendAsync (System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken) [<span class="hljs-number">0x00080</span>] <span class="hljs-keyword">in</span> /<span class="hljs-keyword">Users</span>/builder/jenkins/workspace/<span class="hljs-keyword">archive</span>-mono/<span class="hljs-number">2020</span><span class="hljs-number">-02</span>/android/<span class="hljs-keyword">release</span>/<span class="hljs-keyword">external</span>/corefx/src/System.Net.Http/src/<span class="hljs-keyword">System</span>/Net/<span class="hljs-keyword">Http</span>/SocketsHttpHandler/DecompressionHandler.cs:<span class="hljs-number">48</span> <span class="hljs-keyword">at</span> FFImageLoading.Cache.DownloadCache.DownloadAsync (System.String <span class="hljs-keyword">url</span>, System.Threading.CancellationToken token, System.Net.Http.HttpClient <span class="hljs-keyword">client</span>, FFImageLoading.Work.TaskParameter <span class="hljs-keyword">parameters</span>, FFImageLoading.DownloadInformation downloadInformation) [<span class="hljs-number">0x00142</span>] <span class="hljs-keyword">in</span> C:\projects\ffimageloading\<span class="hljs-keyword">source</span>\FFImageLoading.Common\<span class="hljs-keyword">Cache</span>\DownloadCache.cs:<span class="hljs-number">107</span> <span class="hljs-comment">---> (Inner Exception #1) System.Net.Http.HttpRequestException: The SSL connection could not be established, see inner exception. ---> System.Security.Authentication.AuthenticationException: Authentication failed, see inner exception. --03-18 15:14:03.532 V/mono-stdout(32703): at FFImageLoading.Cache.DownloadCache+<>c__DisplayClass15_0.<DownloadAndCacheIfNeededAsync>b__0 () [0x00050] in C:\projects\ffimageloading\source\FFImageLoading.Common\Cache\DownloadCache.cs:58 </span> <span class="hljs-keyword">at</span> FFImageLoading.Retry.DoAsync[T] (System.Func<span class="hljs-string">1[TResult] action, System.TimeSpan retryInterval, System.Int32 retryCount, System.Action onRetry) [0x00047] in C:\projects\ffimageloading\source\FFImageLoading.Common\Helpers\Retry.cs:19 <---
at Mono.Net.Security.MobileAuthenticatedStream.ProcessAuthentication (System.Boolean runSynchronously, Mono.Net.Security.MonoSslAuthenticationOptions options, System.Threading.CancellationToken cancellationToken) [0x0025c] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/mcs/class/Sys
at Mono.Btls.MonoBtlsContext.ProcessHandshake () [0x00042] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/mcs/class/System/Mono.Btls/MonoBtlsContext.cs:220
at Mono.Net.Security.MobileAuthenticatedStream.ProcessHandshake (Mono.Net.Security.AsyncOperationStatus status, System.Boolean renegotiate) [0x000da] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/mcs/class/System/Mono.Net.Security/MobileAuthenticatedStream.cs:715
at (wrapper remoting-invoke-with-check) Mono.Net.Security.MobileAuthenticatedStream.ProcessHandshake(Mono.Net.Security.AsyncOperationStatus,bool)
at Mono.Net.Security.AsyncProtocolRequest.ProcessOperation (System.Threading.CancellationToken cancellationToken) [0x000fc] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/mcs/class/System/Mono.Net.Security/AsyncProtocolRequest.cs:223
--- End of inner exception stack trace ---
at Mono.Net.Security.MobileAuthenticatedStream.ProcessAuthentication (System.Boolean runSynchronously, Mono.Net.Security.MonoSslAuthenticationOptions options, System.Threading.CancellationToken cancellationToken) [0x0025c] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/mcs/class/System/Mono.Net.Security/MobileAuthenticatedStream.cs:310
at System.Net.Http.RedirectHandler.SendAsync (System.Net.Http.HttpR03-18 15:14:03.532 V/mono-stdout(32703): --- End of inner exception stack trace ---
at System.Net.Http.ConnectHelper.EstablishSslConnectionAsyncCore (System.IO.Stream stream, System.Net.Security.SslClientAuthenticationOptions sslOptions, System.Threading.CancellationToken cancellationToken) [0x000f6] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/corefx/src/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/ConnectHelper.cs:176
at System.Threading.Tasks.ValueTask</span><span class="hljs-number">1</span>[TResult].get_Result () [<span class="hljs-number">0x0001b</span>] <span class="hljs-keyword">in</span> /<span class="hljs-keyword">Users</span>/builder/jenkins/workspace/<span class="hljs-keyword">archive</span>-mono/<span class="hljs-number">2020</span><span class="hljs-number">-02</span>/android/<span class="hljs-keyword">release</span>/<span class="hljs-keyword">external</span>/corefx/src/Common/src/CoreLib/<span class="hljs-keyword">System</span>/Threading/Tasks/ValueTask.cs:<span class="hljs-number">813</span> <span class="hljs-keyword">at</span> System.Net.Http.HttpClient.FinishSendAsyncUnbuffered (System.Threading.Tasks.Task<span class="hljs-string">1[TResult] sendTask, System.Net.Http.HttpRequestMessage request, System.Threading.CancellationTokenSource cts, System.Boolean disposeCts) [0x000b3] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/corefx/src/System.Net.Http/srcmono-stdout(32703): at System.Net.Http.HttpConnectionPool.CreateConnectionAsync (System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken) [0x002d8] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/corefx/src/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/HttpConnectionPool.cs:408
at System.Threading.Tasks.ValueTask</span><span class="hljs-number">1</span>[TResult].get_Result () [<span class="hljs-number">0x0001b</span>] <span class="hljs-keyword">in</span> /<span class="hljs-keyword">Users</span>/builder/jenkins/workspace/<span class="hljs-keyword">archive</span>-mono/<span class="hljs-number">2020</span><span class="hljs-number">-02</span>/android/<span class="hljs-keyword">release</span>/<span class="hljs-keyword">external</span>/corefx/src/Common/src/CoreLib/<span class="hljs-keyword">System</span>/Threading/Tasks/ValueTask.cs:<span class="hljs-number">813</span> <span class="hljs-keyword">at</span> System.Net.Http.HttpConnectionPool.WaitForCreatedConnectionAsync (System.Threading.Tasks.ValueTask<span class="hljs-string">1[TResult] creationTask) [0x000a2] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/corefx/src/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/HttpConnectionPool.cs:543
at System.Net.Http.HttpConnectionPool.SendWithRetryAsync (System.Net.Http.HttpRequestMessage request, System.Boolean doRequestAuth, System.Threading.CancellationToken cancellationToken) [0x0003f] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/corefx/src/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/HttpConnectionPool.cs:284
at Mono.Net.Security.MobileAuthenticatedStream.ProcessHandshake (Mono.Net.Security.AsyncOperationStatus status, System.Boolean renegotiate) [0x000da] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/mcs/class/System/M:03.532 V/mono-stdout(32703): at System.Net.Http.DecompressionHandler.SendAsync (System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken) [0x00080] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/external/corefx/src/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/DecompressionHandler.cs:48 :
:
The remains part left out due to restrictions on size of comment 😃
Visual Studio Community 2019 for Mac
Version 8.10.21 (build 4)
on my M1 Mac and an old Intel based Mac. On the old Mac the Android emulator does connect correctly using the TLS connection. However, on the M1 it still doesn't...
Furthermore, I have found discussions about Let's Encrypt and their old root certificate that expired in September could cause similar issues. However, when I look at the certificate on the proxy server I have in front of the application server then everything looks Ok (can be seen on https://fangst.dalsgaard-data.dk/) - though I must admit I'm not a TLS guru ;-)
With support for Classic Xamarin.Android ended May 1st, 2024, this issue is likely no longer relevant.
If this still persists in .NET 8+, please open a new issue with updated information based on net8.0-android or greater. Please include a link to this issue for context.
This issue has been moved from a ticket on Developer Community.
I have moved my VS to a new Mac M1 - and in doing so I had to recreate Android emulators (running ARM - fast!!).
However, when I call information using TLS (either an image via https or a database sync. via wss) it fails with information about not being able to validate the TLS cert like:
[CouchbaseLite] [Thread Pool Worker]| [Replicator] (WebSocketWrapper) [Thread Pool Worker (31)] Error validating TLS chain: RemoteCertificateChainErrors
Thread started: #34
Thread finished: #34
Thread started: #35
Thread started: #36
Thread finished: #35
Thread started: #37
[CouchbaseLite] [37]| [Network] {N8litecore4repl12C4SocketImplE#3} WebSocket failed to connect! (reason=Network error 8)
[CouchbaseLite] [38]| [Replicator] {Repl#4} Got LiteCore error: Network error 8 "Certificate verification failed (RemoteCertificateChainErrors)"
[DbDataStore] PushAndPull Replicator: 0/0, error CouchbaseLiteException (NetworkDomain / 8): Certificate verification failed (RemoteCertificateChainErrors)., activity = Connecting
[DbDataStore] Error :: Couchbase.Lite.CouchbaseNetworkException: CouchbaseLiteException (NetworkDomain / 8): Certificate verification failed (RemoteCertificateChainErrors).
[DbDataStore] PushAndPull Replicator: 0/0, error CouchbaseLiteException (NetworkDomain / 8): Certificate verification failed (RemoteCertificateChainErrors)., activity = Stopped
[DbDataStore] Error :: Couchbase.Lite.CouchbaseNetworkException: CouchbaseLiteException (NetworkDomain / 8): Certificate verification failed (RemoteCertificateChainErrors).
However, the cert on the server is valid - and expires in more than one month (LetsEncrypt so it will be renewed before).
The solution runs fine on iOS so that also verifies the validity of the cert.
I have tried two emulatos running Android 10 and 12. Same issue.
Having searched around most of the day I came across some articles that could indicate that it was related to Visual Studio….
Original Comments
Feedback Bot on 3/17/2022, 10:48 PM:
We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.
john on 3/18/2022, 07:17 AM:
Further information. This is the stack trace from trying to show an image:
The remains part left out due to restrictions on size of comment 😃
Feedback Bot on 3/21/2022, 08:51 AM:
Thank you for sharing your feedback! Our teams prioritize action on product issues with broad customer impact. See details at: https://docs.microsoft.com/en-us/visualstudio/ide/report-a-problem?view=vs-2019#faq. In case you need answers to common questions or need assisted support, be sure to use https://visualstudio.microsoft.com/vs/support/. We’ll keep you posted on any updates to this feedback.
Original Solutions
(no solutions)
The text was updated successfully, but these errors were encountered: