Configurer des algorithmes de hachage pour l’ouverture de session de certificat
Configure hash algorithms for certificate logon
Explication
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 206) 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 : 205, 206, 207, 208.
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 206) 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: 205, 206, 207, 208.
Registre
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System\Kerberos\Parameters- Nom de la valeur
PKInitHashAlgorithmConfigurationEnabled
| État | Valeur é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 : Kerberos/PKInitHashAlgorithmConfiguration
$k = 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System\Kerberos\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 DWordDésactiver
# Désactiver : Kerberos/PKInitHashAlgorithmConfiguration
$k = 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System\Kerberos\Parameters'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'PKInitHashAlgorithmConfigurationEnabled' -Value 0 -Type DWordRevenir à « Non configuré »
# Revenir à « Non configuré » : Kerberos/PKInitHashAlgorithmConfiguration
$k = 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System\Kerberos\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 SilentlyContinueOptions (4)
| Libellé | Contrôle | Valeur de registre | Type REG | Contraintes / détails | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| SHA-1PKInitHashAlgorithmSHA1 | Liste déroulanteenum | PKInitSHA1 | REG_DWORD | Choix par défaut (interface) : n° 0
| ||||||||||
| SHA-256PKInitHashAlgorithmSHA256 | Liste déroulanteenum | PKInitSHA256 | REG_DWORD | Choix par défaut (interface) : n° 0
| ||||||||||
| SHA-384PKInitHashAlgorithmSHA384 | Liste déroulanteenum | PKInitSHA384 | REG_DWORD | Choix par défaut (interface) : n° 0
| ||||||||||
| SHA-512PKInitHashAlgorithmSHA512 | Liste déroulanteenum | PKInitSHA512 | REG_DWORD | Choix par défaut (interface) : n° 0
|