Open in the explorer

Configure hash algorithms for certificate logon

Configurer des algorithmes de hachage pour l’ouverture de session de certificat

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › System › KDC FR: Configuration ordinateur › Stratégies › Modèles d'administration › Système › KDC
Supported on
At least Windows 11 Version 22H2 FR: Au moins Windows 11 version 22H2
ADMX file
kdc.admx
Internal name
kdc/PKINITHashAlgorithmConfiguration

Explanation

This policy setting controls hash or checksum algorithms used by the Kerberos client when performing certificate authentication.

If you enable this policy, you will be able to configure one of four states for each algorithm:

- “Default” sets the algorithm to the recommended state.

- “Supported” enables usage of the algorithm. Enabling algorithms that have been disabled by default may reduce your security.

- “Audited” enables usage of the algorithm and reports an event (ID 309) every time it is used. This state is intended to verify that the algorithm is not being used and can be safely disabled.

- “Not Supported” disables usage of the algorithm. This state is intended for algorithms that are deemed to be insecure.

If you disable or do not configure this policy, each algorithm will assume the “Default” state.
More information about the hash and checksum algorithms supported by the Windows Kerberos client and their default states can be found at https://go.microsoft.com/fwlink/?linkid=2169037.

Events generated by this configuration: 309, 310.

French text from Windows 11 26H2

Ce paramètre de stratégie contrôle les algorithmes de hachage ou de somme de contrôle utilisés par le client Kerberos lors de l’authentification de certificat.

Si vous activez cette stratégie, vous pouvez configurer l’un des quatre états pour chaque algorithme :

– « Par défaut » définit l’algorithme sur l’état recommandé.

– « Pris en charge » active l’utilisation de l’algorithme. L’activation des algorithmes qui ont été désactivés par défaut peut réduire votre sécurité.

– « Audité » active l’utilisation de l’algorithme et signale un événement (ID 309) chaque fois qu’il est utilisé. Cet état permet de vérifier que l’algorithme n’est pas utilisé et qu’il peut être désactivé en toute sécurité.

– « Non pris en charge » désactive l’utilisation de l’algorithme. Cet état est destiné aux algorithmes considérés comme non sécurisés.

Si vous désactivez ou ne configurez pas cette stratégie, chaque algorithme suppose l’état « Par défaut ».
Pour plus d’informations sur les algorithmes de hachage et de somme de contrôle pris en charge par le client Windows Kerberos et leurs états par défaut, consultez https://go.microsoft.com/fwlink/?linkid=2169037.

Événements générés par cette configuration : 309, 310.

Registry

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System\KDC\Parameters
Value name
PKINITHashAlgorithmConfigurationEnabled
StateValue written
EnabledREG_DWORD = 1
DisabledREG_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: kdc/PKINITHashAlgorithmConfiguration
$k = 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System\KDC\Parameters'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'PKINITHashAlgorithmConfigurationEnabled' -Value 1 -Type DWord
# SHA-1
# Possible options:
#   Default = 1
#   Supported = 3
#   Audited = 2
#   Not Supported = 0
Set-ItemProperty -Path $k -Name 'PKINITSHA1' -Value 1 -Type DWord
# SHA-256
# Possible options:
#   Default = 1
#   Supported = 3
#   Audited = 2
#   Not Supported = 0
Set-ItemProperty -Path $k -Name 'PKINITSHA256' -Value 1 -Type DWord
# SHA-384
# Possible options:
#   Default = 1
#   Supported = 3
#   Audited = 2
#   Not Supported = 0
Set-ItemProperty -Path $k -Name 'PKINITSHA384' -Value 1 -Type DWord
# SHA-512
# Possible options:
#   Default = 1
#   Supported = 3
#   Audited = 2
#   Not Supported = 0
Set-ItemProperty -Path $k -Name 'PKINITSHA512' -Value 1 -Type DWord

Disable

# Disable: kdc/PKINITHashAlgorithmConfiguration
$k = 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System\KDC\Parameters'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'PKINITHashAlgorithmConfigurationEnabled' -Value 0 -Type DWord

Revert to "Not configured"

# Revert to "Not configured": kdc/PKINITHashAlgorithmConfiguration
$k = 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System\KDC\Parameters'
Remove-ItemProperty -Path $k -Name 'PKINITHashAlgorithmConfigurationEnabled' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'PKINITSHA1' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'PKINITSHA256' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'PKINITSHA384' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'PKINITSHA512' -ErrorAction SilentlyContinue

Options (4)

LabelControlRegistry valueREG typeConstraints / details
SHA-1PKINITHashAlgorithmSHA1Drop-down listenumPKINITSHA1REG_DWORD
Default choice (UI): #0
LabelValue
DefaultREG_DWORD = 1
SupportedREG_DWORD = 3
AuditedREG_DWORD = 2
Not SupportedREG_DWORD = 0
SHA-256PKINITHashAlgorithmSHA256Drop-down listenumPKINITSHA256REG_DWORD
Default choice (UI): #0
LabelValue
DefaultREG_DWORD = 1
SupportedREG_DWORD = 3
AuditedREG_DWORD = 2
Not SupportedREG_DWORD = 0
SHA-384PKINITHashAlgorithmSHA384Drop-down listenumPKINITSHA384REG_DWORD
Default choice (UI): #0
LabelValue
DefaultREG_DWORD = 1
SupportedREG_DWORD = 3
AuditedREG_DWORD = 2
Not SupportedREG_DWORD = 0
SHA-512PKINITHashAlgorithmSHA512Drop-down listenumPKINITSHA512REG_DWORD
Default choice (UI): #0
LabelValue
DefaultREG_DWORD = 1
SupportedREG_DWORD = 3
AuditedREG_DWORD = 2
Not SupportedREG_DWORD = 0

Availability

Windows 10

— 22H2— 21H2— 21H1— 20H2— 2004— 1909— 1903— 1809— 1803— 1709— 1703— 1607— 1511— 1507

Windows Server

✓ 2025— 2022— 2016