Ouvrir dans l'explorateur

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

Configure hash algorithms for certificate logon

Type
Ordinateur
Chemin GPO
Configuration ordinateur › Stratégies › Modèles d'administration › Système › KDC EN : Computer Configuration › Policies › Administrative Templates › System › KDC
Pris en charge sur
Au moins Windows 11 version 22H2 EN : At least Windows 11 Version 22H2
Fichier ADMX
kdc.admx
Nom interne
kdc/PKINITHashAlgorithmConfiguration

Explication

Texte français issu de 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.

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.

Registre

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System\KDC\Parameters
Nom de la valeur
PKINITHashAlgorithmConfigurationEnabled
ÉtatValeur écrite
ActivéREG_DWORD = 1
DésactivéREG_DWORD = 0

PowerShell

Commandes PowerShell qui écrivent dans le registre ce que la stratégie écrirait. Les valeurs entre chevrons (<…>) sont à remplacer.

Écrire directement dans le registre contourne la stratégie de groupe : si une GPO gère cette valeur, elle sera réécrite au prochain gpupdate ; sinon la valeur reste en place (effet « tatouage »). Préférez une GPO ou, en local, LGPO.exe. Exécutez PowerShell en administrateur pour HKLM. Certaines stratégies demandent un redémarrage ou gpupdate /force.

Activer

# Activer : 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
# Options possibles :
#   Default = 1
#   Supported = 3
#   Audited = 2
#   Not Supported = 0
Set-ItemProperty -Path $k -Name 'PKINITSHA1' -Value 1 -Type DWord
# SHA-256
# Options possibles :
#   Default = 1
#   Supported = 3
#   Audited = 2
#   Not Supported = 0
Set-ItemProperty -Path $k -Name 'PKINITSHA256' -Value 1 -Type DWord
# SHA-384
# Options possibles :
#   Default = 1
#   Supported = 3
#   Audited = 2
#   Not Supported = 0
Set-ItemProperty -Path $k -Name 'PKINITSHA384' -Value 1 -Type DWord
# SHA-512
# Options possibles :
#   Default = 1
#   Supported = 3
#   Audited = 2
#   Not Supported = 0
Set-ItemProperty -Path $k -Name 'PKINITSHA512' -Value 1 -Type DWord

Désactiver

# Désactiver : 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

Revenir à « Non configuré »

# Revenir à « Non configuré » : 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)

LibelléContrôleValeur de registreType REGContraintes / détails
SHA-1PKINITHashAlgorithmSHA1Liste déroulanteenumPKINITSHA1REG_DWORD
Choix par défaut (interface) : n° 0
LibelléValeur
DefaultREG_DWORD = 1
SupportedREG_DWORD = 3
AuditedREG_DWORD = 2
Not SupportedREG_DWORD = 0
SHA-256PKINITHashAlgorithmSHA256Liste déroulanteenumPKINITSHA256REG_DWORD
Choix par défaut (interface) : n° 0
LibelléValeur
DefaultREG_DWORD = 1
SupportedREG_DWORD = 3
AuditedREG_DWORD = 2
Not SupportedREG_DWORD = 0
SHA-384PKINITHashAlgorithmSHA384Liste déroulanteenumPKINITSHA384REG_DWORD
Choix par défaut (interface) : n° 0
LibelléValeur
DefaultREG_DWORD = 1
SupportedREG_DWORD = 3
AuditedREG_DWORD = 2
Not SupportedREG_DWORD = 0
SHA-512PKINITHashAlgorithmSHA512Liste déroulanteenumPKINITSHA512REG_DWORD
Choix par défaut (interface) : n° 0
LibelléValeur
DefaultREG_DWORD = 1
SupportedREG_DWORD = 3
AuditedREG_DWORD = 2
Not SupportedREG_DWORD = 0

Disponibilité

Windows 10

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

Windows Server

✓ 2025— 2022— 2016