Open in the explorer

Set TLS/SSL security policy for IPP printers

Définir la stratégie de sécurité TLS/SSL pour les imprimantes IPP

Type
Computer
GPO path
Computer Configuration › Policies › Administrative Templates › Printers FR: Configuration ordinateur › Stratégies › Modèles d'administration › Imprimantes
Supported on
At least Windows 11 Version 24H2 FR: Au moins Windows 11 version 24H2
ADMX file
Printing.admx
Internal name
Printing/ConfigureIppTlsCertificatePolicy

Explanation

Determines the TLS/SSL security policy (WINHTTP_OPTION_SECURITY_FLAGS) for printers using the Microsoft IPP Class Driver.

By default, security policy is set to ignore all certificate errors, allowing use of self-signed certificates for printers.

If you enable this setting the system defaults to enabling all certificate checking, disallowing certificate errors. Specific certificate checking can be set with the given checkboxes.

If you disable this setting or do not configure it, the default is to ignore all certificate errors (all checkboxes unchecked).

French text from Windows 11 26H2

Détermine la stratégie de sécurité TLS/SSL (WINHTTP_OPTION_SECURITY_FLAGS) pour les imprimantes qui utilisent le pilote de classe Microsoft IPP.

Par défaut, la stratégie de sécurité est définie pour ignorer toutes les erreurs de certificat, ce qui permet d’utiliser des certificats auto-signés pour les imprimantes.

Si vous activez ce paramètre, le système active par défaut toutes les vérifications de certificats, ce qui désactive les erreurs de certificats. Une vérification spécifique des certificats peut être effectuée à l’aide des cases à cocher correspondantes.

Si vous désactivez ce paramètre ou ne le configurez pas, la valeur par défaut consiste à ignorer toutes les erreurs de certificat (toutes les cases ne sont pas cochées).

Registry

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows NT\Printers\IPP
Value name
not defined in the ADMX

Enable / disable values: not defined in the ADMX (see the options below).

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: Printing/ConfigureIppTlsCertificatePolicy
$k = 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers\IPP'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Disallow invalid certificate authority
# unchecked: 0
Set-ItemProperty -Path $k -Name 'SecurityFlagsBlockUnknownCA' -Value 1 -Type DWord
# Disallow non-server certificates
# unchecked: 0
Set-ItemProperty -Path $k -Name 'SecurityFlagsBlockCertWrongUsage' -Value 1 -Type DWord
# Disallow invalid certificate common name
# unchecked: 0
Set-ItemProperty -Path $k -Name 'SecurityFlagsBlockCertCNInvalid' -Value 1 -Type DWord
# Disallow invalid certificate date
# unchecked: 0
Set-ItemProperty -Path $k -Name 'SecurityFlagsBlockCertDateInvalid' -Value 1 -Type DWord

Disable

# Disable: Printing/ConfigureIppTlsCertificatePolicy
# No value is written in the "Disabled" state (nothing defined in the ADMX)

Revert to "Not configured"

# Revert to "Not configured": Printing/ConfigureIppTlsCertificatePolicy
$k = 'HKLM:\Software\Policies\Microsoft\Windows NT\Printers\IPP'
Remove-ItemProperty -Path $k -Name 'SecurityFlagsBlockUnknownCA' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'SecurityFlagsBlockCertWrongUsage' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'SecurityFlagsBlockCertCNInvalid' -ErrorAction SilentlyContinue
Remove-ItemProperty -Path $k -Name 'SecurityFlagsBlockCertDateInvalid' -ErrorAction SilentlyContinue

Options (4)

LabelControlRegistry valueREG typeConstraints / details
Disallow invalid certificate authorityNe pas autoriser les autorités de certification non validesSecurityFlagsBlockUnknownCACheck boxbooleanSecurityFlagsBlockUnknownCAREG_DWORD
Default (UI): true
Checked: REG_DWORD = 1
Unchecked: REG_DWORD = 0
Disallow non-server certificatesNe pas autoriser les certificats non-serveursSecurityFlagsBlockCertWrongUsageCheck boxbooleanSecurityFlagsBlockCertWrongUsageREG_DWORD
Default (UI): true
Checked: REG_DWORD = 1
Unchecked: REG_DWORD = 0
Disallow invalid certificate common nameNe pas autoriser les noms communs de certificats non validesSecurityFlagsBlockCertCNInvalidCheck boxbooleanSecurityFlagsBlockCertCNInvalidREG_DWORD
Default (UI): true
Checked: REG_DWORD = 1
Unchecked: REG_DWORD = 0
Disallow invalid certificate dateNe pas autoriser les dates de certificats non validesSecurityFlagsBlockCertDateInvalidCheck boxbooleanSecurityFlagsBlockCertDateInvalidREG_DWORD
Default (UI): true
Checked: REG_DWORD = 1
Unchecked: REG_DWORD = 0

Availability

Windows 11

✓ 26H2✓ 25H2✓ 24H2— 23H2— 22H2— 21H2

Windows 10

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

Windows Server

✓ 2025— 2022— 2016