microsoft/AzureKeyVaultExplorer

Unhandled exception of type Microsoft.IdentityModel.Clients.ActiveDirectory.AdalException has occurred: This service requires use of the TLS-1.2 protocol

nathan815-msft opened this issue · 3 comments

Hi, I am getting this error right after clicking "Pick vault from subscription..."

image
camous commented

You need to force having your computer using tls 1.2 for the dotnet framework used by azure key vault explorer.

https://learn.microsoft.com/en-us/mem/configmgr/core/plan-design/security/enable-tls-1-2-client

eg
https://github.com/SammyKrosoft/Check-or-Enable-TLS-1.2-with-PowerShell

I used

Set-ItemProperty -Path 'HKLM:\SOFTWARE\Wow6432Node\Microsoft\.NetFramework\v4.0.30319' -Name 'SchUseStrongCrypto' -Value '1' -Type DWord

Hi @camous, a backslash is missing on the PS command. Right path would be:

Set-ItemProperty -Path 'HKLM:\SOFTWARE\Wow6432Node\Microsoft\.NetFramework\v4.0.30319' -Name 'SchUseStrongCrypto' -Value '1' -Type DWord

thanks @davidjrh , it was actually there, but the code block hide it ... I double it :)