Turn on certificate address mismatch warning
Activer l’avertissement relatif aux incohérences d’adresses de certificats
Explanation
This policy setting allows you to turn on the certificate address mismatch security warning. When this policy setting is turned on, the user is warned when visiting Secure HTTP (HTTPS) websites that present certificates issued for a different website address. This warning helps prevent spoofing attacks.
If you enable this policy setting, the certificate address mismatch warning always appears.
If you disable or do not configure this policy setting, the user can choose whether the certificate address mismatch warning appears (by using the Advanced page in the Internet Control panel).
Ce paramètre de stratégie vous permet d’activer l’avertissement de sécurité relatif aux incohérences d’adresses de certificats. Lorsque ce paramètre de stratégie est activé, l’utilisateur est averti lorsqu’il visite des sites Web HTTP sécurisés (HTTPS) qui présentent des certificats émis pour une autre adresse de site Web. Cet avertissement vous protège des attaques de sites Web falsifiés.
Si vous activez ce paramètre de stratégie, l’avertissement relatif aux incohérences d’adresses de certificats apparaît toujours.
Si vous désactivez ce paramètre de stratégie ou si vous ne le configurez pas, l’utilisateur est libre d’afficher l’avertissement relatif aux incohérences d’adresses de certificats (via l’onglet Avancé de la boîte de dialogue Options Internet).
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\CurrentVersion\Internet SettingsHKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings- Value name
WarnOnBadCertRecving
| State | Value written |
|---|---|
| Enabled | REG_DWORD = 1 |
| Disabled | not defined in the ADMX |
PowerShell
PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.
Writing directly to the registry bypasses Group Policy: if a GPO manages this value, it will be rewritten at the next gpupdate; otherwise the value stays in place (the "tattooing" effect). Prefer a GPO or, locally, LGPO.exe. Run PowerShell as administrator for HKLM. Some policies need a restart or gpupdate /force.
Computer (HKLM)
Enable
# Enable: inetres/IZ_PolicyWarnCertMismatch
$k = 'HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'WarnOnBadCertRecving' -Value 1 -Type DWordDisable
# Disable: inetres/IZ_PolicyWarnCertMismatch
$k = 'HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings'
# disabledValue is not defined in the ADMX: no value is specified for the "Disabled" stateRevert to "Not configured"
# Revert to "Not configured": inetres/IZ_PolicyWarnCertMismatch
$k = 'HKLM:\Software\Policies\Microsoft\Windows\CurrentVersion\Internet Settings'
Remove-ItemProperty -Path $k -Name 'WarnOnBadCertRecving' -ErrorAction SilentlyContinueUser (HKCU)
Enable
Disable
Revert to "Not configured"