Allow time invalid certificates
Autoriser les certificats dont le délai de validité a expiré
Explanation
This policy setting permits those certificates to be displayed for logon that are either expired or not yet valid.
Under previous versions of Microsoft Windows, certificates were required to contain a valid time and not be expired. The certificate must still be accepted by the domain controller in order to be used. This setting only controls the displaying of the certificate on the client machine.
If you enable this policy setting certificates will be listed on the logon screen regardless of whether they have an invalid time or their time validity has expired.
If you disable or do not configure this policy setting, certificates which are expired or not yet valid will not be listed on the logon screen.
Ce paramètre de stratégie permet d’afficher les certificats dont le délai de validité a expiré ou qui ne sont pas encore valides.
Dans les versions antérieures de Microsoft Windows, les certificats devaient posséder des informations de date/heure valides et ne devaient pas avoir expiré. Le certificat doit toujours être accepté par le contrôleur de domaine pour être utilisé. Ce paramètre contrôle uniquement l’affichage du certificat sur l’ordinateur client.
Si vous activez ce paramètre de stratégie, les certificats sont listés dans l’écran d’ouverture de session indépendamment de leurs informations de date/heure ou de leur délai de validité.
Si vous désactivez ce paramètre de stratégie ou si vous ne le configurez pas, les certificats qui ont expiré ou qui ne sont pas encore valides, ne sont pas listés dans l’écran d’ouverture de session.
Registry
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\SmartCardCredentialProvider- Value name
AllowTimeInvalidCertificates
| 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.
Enable
# Enable: Smartcard/AllowTimeInvalidCertificates
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\SmartCardCredentialProvider'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'AllowTimeInvalidCertificates' -Value 1 -Type DWordDisable
# Disable: Smartcard/AllowTimeInvalidCertificates
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\SmartCardCredentialProvider'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'AllowTimeInvalidCertificates' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": Smartcard/AllowTimeInvalidCertificates
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\SmartCardCredentialProvider'
Remove-ItemProperty -Path $k -Name 'AllowTimeInvalidCertificates' -ErrorAction SilentlyContinue