Azure Point-to-Site VPN Error 812

Aug 16th, 2018

Came across this error message when attempting to established P2S VPN connection from Windows Server 2012 R2 client to Azure.

The connection was prevented because of a policy configured on your RAS/VPN server. Specifically, the authentication method used by the server to verify your username and password may not match the authentication method configured in your connection profile. Please contact the Administrator of the RAS server and notify them of this error. (Error 812)

Most sites will tell you it is certificate related but most of the answers I found googling didn’t resolve my issue. The fix was upgrading my TLS to TLS 1.2 because starting July 1, 2018, support is being removed for TLS 1.0 and 1.1 from Azure VPN Gateway. VPN Gateway will support only TLS 1.2. 

Here are my solutions:

  1. Backup your registry
  2. Open command prompt as Administrator and run:
  3. reg add HKLM\SYSTEM\CurrentControlSet\Services\RasMan\PPP\EAP\13 /v TlsVersion /t REG_DWORD /d 0xfc0
  4. reg add “HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\WinHttp” /v DefaultSecureProtocols /t REG_DWORD /d 0xaa0
  5. if %PROCESSOR_ARCHITECTURE% EQU AMD64 reg add “HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Internet Settings\WinHttp” /v DefaultSecureProtocols /t REG_DWORD /d 0xaa0
Be Sociable, Share!
No comments yet.