Ouvrir dans l'explorateur

Autoriser les certificats sans attribut d’utilisation avancée de la clé

Allow certificates with no extended key usage certificate attribute

Type
Ordinateur
Chemin GPO
Configuration ordinateur › Stratégies › Modèles d'administration › Composants Windows › Carte à puce EN : Computer Configuration › Policies › Administrative Templates › Windows Components › Smart Card
Pris en charge sur
Au minimum Windows Vista EN : At least Windows Vista
Fichier ADMX
Smartcard.admx
Nom interne
Smartcard/AllowCertificatesWithNoEKU

Explication

Texte français issu de Windows 11 26H2

Ce paramètre de stratégie vous permet d’autoriser les certificats ne disposant pas d’un attribut d’utilisation de clé étendue (EKU) pour l’ouverture de session.

Dans les versions Windows antérieures à Windows Vista, l’extension EKU était nécessaire à l’identificateur d’objet pour une ouverture de session par carte à puce. Ce paramètre de stratégie contrôle cette restriction.

Si vous activez ce paramètre de stratégie, il est possible de tirer parti des certificats possédant les attributs suivants pour ouvrir une session à l'aide d'une carte à puce :
- Certificats sans extension EKU
- Certificats avec une extension EKU universelle
- Certificats avec une extension EKU d'authentification client.

Si vous désactivez ce paramètre de stratégie ou si vous ne le configurez pas, seuls les certificats contenant l’identificateur d’objet pour une ouverture de session par carte à puce autorisent l'ouverture d'une session avec une carte à puce.

This policy setting lets you allow certificates without an Extended Key Usage (EKU) set to be used for logon.

In versions of Windows prior to Windows Vista, smart card certificates that are used for logon require an enhanced key usage (EKU) extension with a smart card logon object identifier. This policy setting can be used to modify that restriction.

If you enable this policy setting, certificates with the following attributes can also be used to log on with a smart card:
- Certificates with no EKU
- Certificates with an All Purpose EKU
- Certificates with a Client Authentication EKU

If you disable or do not configure this policy setting, only certificates that contain the smart card logon object identifier can be used to log on with a smart card.

Registre

HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\SmartCardCredentialProvider
Nom de la valeur
AllowCertificatesWithNoEKU
É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 : Smartcard/AllowCertificatesWithNoEKU
$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 'AllowCertificatesWithNoEKU' -Value 1 -Type DWord

Désactiver

# Désactiver : Smartcard/AllowCertificatesWithNoEKU
$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 'AllowCertificatesWithNoEKU' -Value 0 -Type DWord

Revenir à « Non configuré »

# Revenir à « Non configuré » : Smartcard/AllowCertificatesWithNoEKU
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\SmartCardCredentialProvider'
Remove-ItemProperty -Path $k -Name 'AllowCertificatesWithNoEKU' -ErrorAction SilentlyContinue

Disponibilité