We were able to connect to the keyvault from .NET 5 api running from my local machine till 2 days back. It is giving the below error recently
Retry failed after 4 tries. Retry settings can be adjusted in ClientOptions.Retry. (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.)
we are accessing the keyvault using the DefaultAzureCredential (pls see the below code) and configured my email though Visual Studio -->Tools> Options-->Azure Service Authentication-->Account Selection--> "XXyemail@.com". This email has list access like (list, add, get ,delete, upddate) in access polices of KeyVault.
public static IHostBuilder CreateHostBuilder(string[] args) =>
Host.CreateDefaultBuilder(args)
.ConfigureAppConfiguration((context, config) =>
{
var appSettings = config.Build();
var credentialOptions = new DefaultAzureCredentialOptions();
var credential = new DefaultAzureCredential(credentialOptions);
config.AddAzureKeyVault(new Uri(appSettings["KeyVault:Url"]), credential);
})
.ConfigureWebHostDefaults(webBuilder =>
{
webBuilder.UseSerilog();
webBuilder.UseStartup<Startup>();
});
}
Retry failed after 4 tries. Retry settings can be adjusted in ClientOptions.Retry. (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.)
can anybody let me know what would be the reason for this ?
thanks,