Set TLS/SSL security policy for IPP printers
Définir la stratégie de sécurité TLS/SSL pour les imprimantes IPP
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).
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 DWordDisable
# 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 SilentlyContinueOptions (4)
| Label | Control | Registry value | REG type | Constraints / details |
|---|---|---|---|---|
| Disallow invalid certificate authorityNe pas autoriser les autorités de certification non validesSecurityFlagsBlockUnknownCA | Check boxboolean | SecurityFlagsBlockUnknownCA | REG_DWORD | Default (UI): true Checked: REG_DWORD = 1Unchecked: REG_DWORD = 0 |
| Disallow non-server certificatesNe pas autoriser les certificats non-serveursSecurityFlagsBlockCertWrongUsage | Check boxboolean | SecurityFlagsBlockCertWrongUsage | REG_DWORD | Default (UI): true Checked: REG_DWORD = 1Unchecked: REG_DWORD = 0 |
| Disallow invalid certificate common nameNe pas autoriser les noms communs de certificats non validesSecurityFlagsBlockCertCNInvalid | Check boxboolean | SecurityFlagsBlockCertCNInvalid | REG_DWORD | Default (UI): true Checked: REG_DWORD = 1Unchecked: REG_DWORD = 0 |
| Disallow invalid certificate dateNe pas autoriser les dates de certificats non validesSecurityFlagsBlockCertDateInvalid | Check boxboolean | SecurityFlagsBlockCertDateInvalid | REG_DWORD | Default (UI): true Checked: REG_DWORD = 1Unchecked: REG_DWORD = 0 |