2022-05-13 20:08:20 +08:00
. \"
. \" client.conf man page for CUPS.
. \"
2023-01-11 16:57:48 +08:00
. \" Copyright © 2021-2022 by OpenPrinting.
2022-05-13 20:08:20 +08:00
. \" Copyright © 2007-2019 by Apple Inc.
. \" Copyright © 2006 by Easy Software Products.
. \"
. \" Licensed under Apache License v2.0. See the file "LICENSE" for more
. \" information.
. \"
2023-01-11 16:57:48 +08:00
.TH client.conf 5 "CUPS" "2021-02-28" "OpenPrinting"
2022-05-13 20:08:20 +08:00
.SH NAME
client.conf \- client configuration file for cups (deprecated on macos)
.SH DESCRIPTION
The \fB client.conf\fR file configures the CUPS client and is normally located in the \fI /etc/cups\fR and/or \fI ~/.cups\fR directories.
Each line in the file can be a configuration directive, a blank line, or a comment. Comment lines start with the # character.
.LP
\fB Note:\fR Starting with macOS 10.7, this file is only used by command-line and X11 applications plus the IPP backend.
The \fB ServerName\fR directive is not supported on macOS at all.
Starting with macOS 10.12, all applications can access these settings in the \fI /Library/Preferences/org.cups.PrintingPrefs.plist\fR file instead.
See the NOTES section below for more information.
.SS DIRECTIVES
The following directives are understood by the client. Consult the online help for detailed descriptions:
. \"#AllowAnyRoot
.TP 5
\fB AllowAnyRoot Yes\fR
.TP 5
\fB AllowAnyRoot No\fR
Specifies whether to allow TLS with certificates that have not been signed by a trusted Certificate Authority.
The default is "Yes".
. \"#AllowExpiredCerts
.TP 5
\fB AllowExpiredCerts Yes\fR
.TP 5
\fB AllowExpiredCerts No\fR
Specifies whether to allow TLS with expired certificates.
The default is "No".
. \"#DigestOptions
.TP 5
\fB DigestOptions DenyMD5\fR
.TP 5
\fB DigestOptions None\fR
Specifies HTTP Digest authentication options.
\fB DenyMD5\fR disables support for the original MD5 hash algorithm.
. \"#Encryption
.TP 5
\fB Encryption IfRequested\fR
.TP 5
\fB Encryption Never\fR
.TP 5
\fB Encryption Required\fR
Specifies the level of encryption that should be used.
. \"#GSSServiceName
.TP 5
\fB GSSServiceName \fI name\fR
Specifies the Kerberos service name that is used for authentication, typically "host", "http", or "ipp".
CUPS adds the remote hostname ("name@server.example.com") for you. The default name is "http".
. \"#ServerName
.TP 5
\fB ServerName \fI hostname-or-ip-address\fR [\fI :port\fR ]
.TP 5
\fB ServerName \fI /domain/socket\fR
Specifies the address and optionally the port to use when connecting to the server.
\fB Note: This directive is not supported on macOS 10.7 or later.\fR
.TP 5
\fB ServerName \fI hostname-or-ip-address\fR [\fI :port\fR ]\fB /version=1.1\fR
Specifies the address and optionally the port to use when connecting to a server running CUPS 1.3.12 and earlier.
. \"#SSLOptions
.TP 5
\fB SSLOptions \fR [\fI AllowDH\fR ] [\fI AllowRC4\fR ] [\fI AllowSSL3\fR ] [\fI DenyCBC\fR ] [\fI DenyTLS1.0\fR ] [\fI MaxTLS1.0\fR ] [\fI MaxTLS1.1\fR ] [\fI MaxTLS1.2\fR ] [\fI MaxTLS1.3\fR ] [\fI MinTLS1.0\fR ] [\fI MinTLS1.1\fR ] [\fI MinTLS1.2\fR ] [\fI MinTLS1.3\fR ]
.TP 5
\fB SSLOptions None\fR
Sets encryption options (only in /etc/cups/client.conf).
By default, CUPS only supports encryption using TLS v1.0 or higher using known secure cipher suites.
Security is reduced when \fI Allow\fR options are used.
Security is enhanced when \fI Deny\fR options are used.
The \fI AllowDH\fR option enables cipher suites using plain Diffie-Hellman key negotiation (not supported on systems using GNU TLS).
The \fI AllowRC4\fR option enables the 128-bit RC4 cipher suites, which are required for some older clients.
The \fI AllowSSL3\fR option enables SSL v3.0, which is required for some older clients that do not support TLS v1.0.
The \fI DenyCBC\fR option disables all CBC cipher suites.
The \fI DenyTLS1.0\fR option disables TLS v1.0 support - this sets the minimum protocol version to TLS v1.1.
The \fI MinTLS\fR options set the minimum TLS version to support.
The \fI MaxTLS\fR options set the maximum TLS version to support.
Not all operating systems support TLS 1.3 at this time.
. \"#TrustOnFirstUse
.TP 5
\fB TrustOnFirstUse Yes\fR
.TP 5
\fB TrustOnFirstUse No\fR
Specifies whether to trust new TLS certificates by default.
The default is "Yes".
. \"#User
.TP 5
\fB User \fI name\fR
Specifies the default user name to use for requests.
. \"#UserAgentTokens
.TP 5
\fB UserAgentTokens None\fR
.TP 5
\fB UserAgentTokens ProductOnly\fR
.TP 5
\fB UserAgentTokens Major\fR
.TP 5
\fB UserAgentTokens Minor\fR
.TP 5
\fB UserAgentTokens Minimal\fR
.TP 5
\fB UserAgentTokens OS\fR
.TP 5
\fB UserAgentTokens Full\fR
Specifies what information is included in the User-Agent header of HTTP requests.
"None" disables the User-Agent header.
"ProductOnly" reports "CUPS".
"Major" reports "CUPS/major IPP/2".
"Minor" reports "CUPS/major.minor IPP/2.1".
"Minimal" reports "CUPS/major.minor.patch IPP/2.1".
"OS" reports "CUPS/major.minor.path (osname osversion) IPP/2.1".
"Full" reports "CUPS/major.minor.path (osname osversion; architecture) IPP/2.1".
The default is "Minimal".
. \"#ValidateCerts
.TP 5
\fB ValidateCerts Yes\fR
.TP 5
\fB ValidateCerts No\fR
Specifies whether to only allow TLS with certificates whose common name matches the hostname.
The default is "No".
.SH NOTES
The \fB client.conf\fR file is deprecated on macOS and will no longer be supported in a future version of CUPS.
Configuration settings can instead be viewed or changed using the
.BR defaults (1)
command:
.nf
defaults write /Library/Preferences/org.cups.PrintingPrefs.plist Encryption Required
defaults write /Library/Preferences/org.cups.PrintingPrefs.plist TrustOnFirstUse -bool NO
defaults read /Library/Preferences/org.cups.PrintingPrefs.plist Encryption
.fi
On Linux and other systems using GNU TLS, the \fI /etc/cups/ssl/site.crl\fR file, if present, provides a list of revoked X.509 certificates and is used when validating certificates.
.SH SEE ALSO
.BR cups (1),
.BR default (1),
CUPS Online Help (http://localhost:631/help)
.SH COPYRIGHT
2023-01-11 16:57:48 +08:00
Copyright \[ co] 2021-2022 by OpenPrinting.