Could not create SSL/TLS secure channel. Connecting to Azure App Configuration Store.

%3CLINGO-SUB%20id%3D%22lingo-sub-2196183%22%20slang%3D%22en-US%22%3ECould%20not%20create%20SSL%2FTLS%20secure%20channel.%20Connecting%20to%20Azure%20App%20Configuration%20Store.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2196183%22%20slang%3D%22en-US%22%3E%3CP%3EI%20am%20attempting%20to%20connect%20to%20Azure%20App%20Configuration%20store%20from%20an%20App%20Service%20in%20Azure.%26nbsp%3B%20Using%20framework%204.7.2.%26nbsp%3B%20Web%20Application%20attempting%20to%20load%20Azure%20App%20Config%20values.%26nbsp%3B%20I%20have%20searched%20multiple%20articles%20and%20still%20have%20had%20no%20luck.%26nbsp%3B%20Keep%20getting%26nbsp%3BCould%20not%20create%20SSL%2FTLS%20secure%20channel.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Eit%20works%20locally%2C%20but%20when%20published%20to%20Azure%2C%20I%20get%20the%20issue.%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20tried%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E1)%20Targeting%20TLS%201.2%20in%20my%20global.asax.%26nbsp%3B%20Also%20tried%20setting%20it%20to%20UseDefault.%26nbsp%3B%3C%2FP%3E%3CP%3E2)%20Set%20TLS%201.2%20on%20the%20App%20Service%20TLS%20settings.%3C%2FP%3E%3CP%3E3)%20Examining%20code%20for%20any%20references%20to%20targeting%20a%20specific%20Security%20Protocol.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%3E%5BRequestFailedException%3A%20The%20request%20was%20aborted%3A%20Could%20not%20create%20SSL%2FTLS%20secure%20channel.%5D%0A%20%20%20Azure.Core.Pipeline.%26lt%3BProcessInternal%26gt%3Bd__5.MoveNext()%20%2B1662%0A%20%20%20System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task%20task)%20%2B102%0A%20%20%20System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task%20task)%20%2B64%0A%20%20%20Azure.Core.Pipeline.%26lt%3BProcessAsync%26gt%3Bd__4.MoveNext()%20%2B362%0A%20%20%20System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task%20task)%20%2B102%0A%20%20%20System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task%20task)%20%2B64%0A%20%20%20Azure.Core.Pipeline.%26lt%3BProcessNextAsync%26gt%3Bd__10.MoveNext()%20%2B608%0A%20%20%20System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task%20task)%20%2B102%0A%20%20%20System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task%20task)%20%2B64%0A%20%20%20System.Threading.Tasks.ValueTask.ThrowIfCompletedUnsuccessfully()%20%2B60%0A%20%20%20Azure.Core.Pipeline.%26lt%3BProcessAsync%26gt%3Bd__9.MoveNext()%20%2B1155%0A%20%20%20System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task%20task)%20%2B102%0A%20%20%20System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task%20task)%20%2B64%0A%20%20%20Azure.Core.Pipeline.%26lt%3BProcessAsync%26gt%3Bd__5.MoveNext()%20%2B763%0A%20%20%20System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task%20task)%20%2B102%0A%20%20%20System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task%20task)%20%2B64%0A%20%20%20Azure.Core.Pipeline.%26lt%3BProcessAsync%26gt%3Bd__3.MoveNext()%20%2B373%0A%20%20%20System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task%20task)%20%2B102%0A%20%20%20System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task%20task)%20%2B64%0A%20%20%20System.Threading.Tasks.ValueTask.ThrowIfCompletedUnsuccessfully()%20%2B60%0A%20%20%20Azure.Core.Pipeline.%26lt%3BProcessAsync%26gt%3Bd__8.MoveNext()%20%2B349%0A%20%20%20System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task%20task)%20%2B102%0A%20%20%20System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task%20task)%20%2B64%0A%20%20%20Azure.Core.Pipeline.%26lt%3BProcessAsync%26gt%3Bd__7.MoveNext()%20%2B373%0A%20%20%20System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task%20task)%20%2B102%0A%20%20%20System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task%20task)%20%2B64%0A%20%20%20Azure.Core.Pipeline.%26lt%3BProcessAsync%26gt%3Bd__1.MoveNext()%20%2B392%0A%20%20%20System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task%20task)%20%2B102%0A%20%20%20System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task%20task)%20%2B64%0A%20%20%20Azure.Data.AppConfiguration.%26lt%3BProcessAsync%26gt%3Bd__4.MoveNext()%20%2B978%0A%20%20%20System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task%20task)%20%2B102%0A%20%20%20System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task%20task)%20%2B64%0A%20%20%20System.Threading.Tasks.ValueTask.ThrowIfCompletedUnsuccessfully()%20%2B60%0A%20%20%20Azure.Core.Pipeline.%26lt%3BProcessAsync%26gt%3Bd__11.MoveNext()%20%2B844%0A%0A%5BAggregateException%3A%20Retry%20failed%20after%204%20tries.%5D%0A%20%20%20Azure.Core.Pipeline.%26lt%3BProcessAsync%26gt%3Bd__11.MoveNext()%20%2B1509%0A%20%20%20System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task%20task)%20%2B102%0A%20%20%20System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task%20task)%20%2B64%0A%20%20%20Azure.Core.Pipeline.%26lt%3BProcessAsync%26gt%3Bd__1.MoveNext()%20%2B392%0A%20%20%20System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task%20task)%20%2B102%0A%20%20%20System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task%20task)%20%2B64%0A%20%20%20Azure.Core.Pipeline.%26lt%3BProcessAsync%26gt%3Bd__1.MoveNext()%20%2B392%0A%20%20%20System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task%20task)%20%2B102%0A%20%20%20System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task%20task)%20%2B64%0A%20%20%20Azure.Core.Pipeline.%26lt%3BProcessAsync%26gt%3Bd__1.MoveNext()%20%2B392%0A%20%20%20System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task%20task)%20%2B102%0A%20%20%20System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task%20task)%20%2B64%0A%20%20%20Azure.Core.Pipeline.%26lt%3BProcessAsync%26gt%3Bd__1.MoveNext()%20%2B392%0A%20%20%20System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task%20task)%20%2B102%0A%20%20%20System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task%20task)%20%2B64%0A%20%20%20Azure.Core.Pipeline.%26lt%3BProcessAsync%26gt%3Bd__1.MoveNext()%20%2B392%0A%20%20%20System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task%20task)%20%2B102%0A%20%20%20System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task%20task)%20%2B64%0A%20%20%20Azure.Core.Pipeline.%26lt%3BSendRequestAsync%26gt%3Bd__10.MoveNext()%20%2B418%0A%20%20%20System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task%20task)%20%2B102%0A%20%20%20System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task%20task)%20%2B64%0A%20%20%20Azure.Data.AppConfiguration.%26lt%3BGetConfigurationSettingsPageAsync%26gt%3Bd__42.MoveNext()%20%2B1659%0A%20%20%20System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task%20task)%20%2B102%0A%20%20%20System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task%20task)%20%2B64%0A%20%20%20Azure.Core.%26lt%3BAsPages%26gt%3Bd__2.MoveNext()%20%2B282%0A%20%20%20System.Threading.Tasks.Sources.ManualResetValueTaskSourceCore%601.GetResult(Int16%20token)%20%2B47%0A%20%20%20Azure.Core.%26lt%3BAsPages%26gt%3Bd__2.System.Threading.Tasks.Sources.IValueTaskSource%26lt%3BSystem.Boolean%26gt%3B.GetResult(Int16%20token)%20%2B11%0A%20%20%20Azure.%26lt%3BGetAsyncEnumerator%26gt%3Bd__6.MoveNext()%20%2B1045%0A%20%20%20System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()%20%2B27%0A%20%20%20Azure.%26lt%3BGetAsyncEnumerator%26gt%3Bd__6.MoveNext()%20%2B1336%0A%20%20%20System.Threading.Tasks.Sources.ManualResetValueTaskSourceCore%601.GetResult(Int16%20token)%20%2B47%0A%20%20%20Azure.%26lt%3BGetAsyncEnumerator%26gt%3Bd__6.System.Threading.Tasks.Sources.IValueTaskSource%26lt%3BSystem.Boolean%26gt%3B.GetResult(Int16%20token)%20%2B10%0A%20%20%20System.Threading.Tasks.ValueTask%601.get_Result()%20%2B93%0A%20%20%20Microsoft.Configuration.ConfigurationBuilders.%26lt%3BGetAllValuesAsync%26gt%3Bd__20.MoveNext()%20%2B1434%0A%20%20%20System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()%20%2B27%0A%20%20%20Microsoft.Configuration.ConfigurationBuilders.%26lt%3BGetAllValuesAsync%26gt%3Bd__20.MoveNext()%20%2B1669%0A%20%20%20System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task%20task)%20%2B102%0A%20%20%20System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task%20task)%20%2B64%0A%20%20%20Microsoft.Configuration.ConfigurationBuilders.%26lt%3B%26lt%3BGetAllValues%26gt%3Bb__0%26gt%3Bd.MoveNext()%20%2B151%0A%0A%5BAggregateException%3A%20One%20or%20more%20errors%20occurred.%5D%0A%20%20%20System.Threading.Tasks.Task.ThrowIfExceptional(Boolean%20includeTaskCanceledExceptions)%20%2B4247326%0A%20%20%20System.Threading.Tasks.Task%601.GetResultCore(Boolean%20waitCompletionNotification)%20%2B12576612%0A%20%20%20System.Threading.Tasks.Task%601.get_Result()%20%2B34%0A%20%20%20Microsoft.Configuration.ConfigurationBuilders.AzureAppConfigurationBuilder.GetAllValues(String%20prefix)%20%2B87%0A%20%20%20Microsoft.Configuration.ConfigurationBuilders.KeyValueConfigBuilder.EnsureGreedyInitialized()%20%2B174%0A%0A%5BException%3A%20Error%20in%20Configuration%20Builder%20'AzureAppConfig'%3A%3AGetAllValues()%5D%0A%20%20%20Microsoft.Configuration.ConfigurationBuilders.KeyValueConfigBuilder.EnsureGreedyInitialized()%20%2B543%0A%20%20%20Microsoft.Configuration.ConfigurationBuilders.KeyValueConfigBuilder.ProcessConfigurationSection(ConfigurationSection%20configSection)%20%2B299%0A%20%20%20System.Configuration.ConfigurationBuilderChain.ProcessConfigurationSection(ConfigurationSection%20configSection)%20%2B129%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Visitor

I am attempting to connect to Azure App Configuration store from an App Service in Azure.  Using framework 4.7.2.  Web Application attempting to load Azure App Config values.  I have searched multiple articles and still have had no luck.  Keep getting Could not create SSL/TLS secure channel.

 

it works locally, but when published to Azure, I get the issue.  

 

I have tried:

 

1) Targeting TLS 1.2 in my global.asax.  Also tried setting it to UseDefault. 

2) Set TLS 1.2 on the App Service TLS settings.

3) Examining code for any references to targeting a specific Security Protocol.

 

[RequestFailedException: The request was aborted: Could not create SSL/TLS secure channel.]
   Azure.Core.Pipeline.<ProcessInternal>d__5.MoveNext() +1662
   System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +102
   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +64
   Azure.Core.Pipeline.<ProcessAsync>d__4.MoveNext() +362
   System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +102
   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +64
   Azure.Core.Pipeline.<ProcessNextAsync>d__10.MoveNext() +608
   System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +102
   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +64
   System.Threading.Tasks.ValueTask.ThrowIfCompletedUnsuccessfully() +60
   Azure.Core.Pipeline.<ProcessAsync>d__9.MoveNext() +1155
   System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +102
   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +64
   Azure.Core.Pipeline.<ProcessAsync>d__5.MoveNext() +763
   System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +102
   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +64
   Azure.Core.Pipeline.<ProcessAsync>d__3.MoveNext() +373
   System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +102
   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +64
   System.Threading.Tasks.ValueTask.ThrowIfCompletedUnsuccessfully() +60
   Azure.Core.Pipeline.<ProcessAsync>d__8.MoveNext() +349
   System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +102
   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +64
   Azure.Core.Pipeline.<ProcessAsync>d__7.MoveNext() +373
   System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +102
   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +64
   Azure.Core.Pipeline.<ProcessAsync>d__1.MoveNext() +392
   System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +102
   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +64
   Azure.Data.AppConfiguration.<ProcessAsync>d__4.MoveNext() +978
   System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +102
   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +64
   System.Threading.Tasks.ValueTask.ThrowIfCompletedUnsuccessfully() +60
   Azure.Core.Pipeline.<ProcessAsync>d__11.MoveNext() +844

[AggregateException: Retry failed after 4 tries.]
   Azure.Core.Pipeline.<ProcessAsync>d__11.MoveNext() +1509
   System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +102
   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +64
   Azure.Core.Pipeline.<ProcessAsync>d__1.MoveNext() +392
   System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +102
   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +64
   Azure.Core.Pipeline.<ProcessAsync>d__1.MoveNext() +392
   System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +102
   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +64
   Azure.Core.Pipeline.<ProcessAsync>d__1.MoveNext() +392
   System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +102
   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +64
   Azure.Core.Pipeline.<ProcessAsync>d__1.MoveNext() +392
   System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +102
   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +64
   Azure.Core.Pipeline.<ProcessAsync>d__1.MoveNext() +392
   System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +102
   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +64
   Azure.Core.Pipeline.<SendRequestAsync>d__10.MoveNext() +418
   System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +102
   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +64
   Azure.Data.AppConfiguration.<GetConfigurationSettingsPageAsync>d__42.MoveNext() +1659
   System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +102
   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +64
   Azure.Core.<AsPages>d__2.MoveNext() +282
   System.Threading.Tasks.Sources.ManualResetValueTaskSourceCore`1.GetResult(Int16 token) +47
   Azure.Core.<AsPages>d__2.System.Threading.Tasks.Sources.IValueTaskSource<System.Boolean>.GetResult(Int16 token) +11
   Azure.<GetAsyncEnumerator>d__6.MoveNext() +1045
   System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() +27
   Azure.<GetAsyncEnumerator>d__6.MoveNext() +1336
   System.Threading.Tasks.Sources.ManualResetValueTaskSourceCore`1.GetResult(Int16 token) +47
   Azure.<GetAsyncEnumerator>d__6.System.Threading.Tasks.Sources.IValueTaskSource<System.Boolean>.GetResult(Int16 token) +10
   System.Threading.Tasks.ValueTask`1.get_Result() +93
   Microsoft.Configuration.ConfigurationBuilders.<GetAllValuesAsync>d__20.MoveNext() +1434
   System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() +27
   Microsoft.Configuration.ConfigurationBuilders.<GetAllValuesAsync>d__20.MoveNext() +1669
   System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +102
   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +64
   Microsoft.Configuration.ConfigurationBuilders.<<GetAllValues>b__0>d.MoveNext() +151

[AggregateException: One or more errors occurred.]
   System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) +4247326
   System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification) +12576612
   System.Threading.Tasks.Task`1.get_Result() +34
   Microsoft.Configuration.ConfigurationBuilders.AzureAppConfigurationBuilder.GetAllValues(String prefix) +87
   Microsoft.Configuration.ConfigurationBuilders.KeyValueConfigBuilder.EnsureGreedyInitialized() +174

[Exception: Error in Configuration Builder 'AzureAppConfig'::GetAllValues()]
   Microsoft.Configuration.ConfigurationBuilders.KeyValueConfigBuilder.EnsureGreedyInitialized() +543
   Microsoft.Configuration.ConfigurationBuilders.KeyValueConfigBuilder.ProcessConfigurationSection(ConfigurationSection configSection) +299
   System.Configuration.ConfigurationBuilderChain.ProcessConfigurationSection(ConfigurationSection configSection) +129

 

 

 

 

0 Replies