Prevent certificate error overrides
Empêcher les remplacements d’erreur de certificat
Explanation
Web security certificates are used to ensure a site your users go to is legitimate, and in some circumstances encrypts the data. With this policy, you can specify whether to prevent users from bypassing the security warning to sites that have SSL errors.
If enabled, overriding certificate errors are not allowed.
If disabled or not configured, overriding certificate errors are allowed.
Les certificats de sécurité web permettent de garantir la légitimité d'un site que vos utilisateurs visitent et, dans certaines circonstances, chiffrent les données. Avec cette stratégie, vous pouvez spécifier s'il faut empêcher les utilisateurs de contourner l'avertissement de sécurité sur les sites qui présentent des erreurs SSL.
Si cette option est activée, il est interdit de remplacer les erreurs de certificat.
Si cette option est désactivée ou n'est pas configurée, le remplacement d'erreurs de certificat est autorisé.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\MicrosoftEdge\Internet SettingsHKEY_CURRENT_USER\Software\Policies\Microsoft\MicrosoftEdge\Internet Settings- Value name
PreventCertErrorOverrides
| State | Value written |
|---|---|
| Enabled | REG_DWORD = 1 |
| Disabled | REG_DWORD = 0 |
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: MicrosoftEdge/PreventCertErrorOverrides
$k = 'HKLM:\Software\Policies\Microsoft\MicrosoftEdge\Internet Settings'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'PreventCertErrorOverrides' -Value 1 -Type DWordDisable
# Disable: MicrosoftEdge/PreventCertErrorOverrides
$k = 'HKLM:\Software\Policies\Microsoft\MicrosoftEdge\Internet Settings'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'PreventCertErrorOverrides' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": MicrosoftEdge/PreventCertErrorOverrides
$k = 'HKLM:\Software\Policies\Microsoft\MicrosoftEdge\Internet Settings'
Remove-ItemProperty -Path $k -Name 'PreventCertErrorOverrides' -ErrorAction SilentlyContinueUser (HKCU)
Enable
Disable
Revert to "Not configured"