'\" t .\" Title: crypto-policies .\" Author: [see the "AUTHOR" section] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: 08/24/2019 .\" Manual: \ \& .\" Source: crypto-policies .\" Language: English .\" .TH "CRYPTO\-POLICIES" "7" "08/24/2019" "crypto\-policies" "\ \&" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" crypto-policies \- system\-wide crypto policies overview .SH "DESCRIPTION" .sp The security of cryptographic components of the operating system does not remain constant over time\&. Algorithms, such as cryptographic hashing and encryption, typically have a lifetime, after which they are considered either too risky to use or plain insecure\&. That means, we need to phase out such algorithms from the default settings or completely disable them if they could cause an irreparable problem\&. .sp While in the past the algorithms were not disabled in a consistent way and different applications applied different policies, the system\-wide crypto\-policies followed by the crypto core components allow consistently deprecating and disabling algorithms system\-wide\&. .sp The individual policy levels (\fBDEFAULT\fR, \fBLEGACY\fR, \fBFUTURE\fR, and \fBFIPS\fR) are included in the \fBcrypto\-policies(7)\fR package\&. In the future, there will be also a mechanism for easy creation and deployment of policies defined by the system administrator or a third party vendor\&. .sp For rationale, see \fBRFC 7457\fR for a list of attacks taking advantage of legacy crypto algorithms\&. .SH "COVERED APPLICATIONS" .sp Crypto\-policies apply to the configuration of the core cryptographic subsystems, covering \fBTLS\fR, \fBIKE\fR, \fBIPSec\fR, \fBDNSSec\fR, and \fBKerberos\fR protocols; i\&.e\&., the supported secure communications protocols on the base operating system\&. .sp Once an application runs in the operating system, it follows the default or selected policy and refuses to fall back to algorithms and protocols not within the policy, unless the user has explicitly requested the application to do so\&. That is, the policy applies to the default behavior of applications when running with the system\-provided configuration but the user can override it on an application\-specific basis\&. .sp The policies currently provide settings for these applications and libraries: .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fBBIND\fR DNS name server daemon .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fBGnuTLS\fR TLS library .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fBOpenJDK\fR runtime environment .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fBKerberos 5\fR library .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fBLibreswan\fR IPsec and IKE protocol implementation .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fBNSS\fR TLS library .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fBOpenSSH\fR SSH2 protocol implementation .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fBOpenSSL\fR TLS library .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fBlibssh\fR SSH2 protocol implementation .RE .sp Applications using the above libraries and tools are covered by the cryptographic policies unless they are explicitly configured not to be so\&. .SH "PROVIDED POLICY LEVELS" .PP \fBLEGACY\fR .RS 4 This policy ensures maximum compatibility with legacy systems; it is less secure and it includes support for \fBTLS 1\&.0\fR, \fBTLS 1\&.1\fR, and \fBSSH2\fR protocols or later\&. The algorithms \fBDSA\fR, \fB3DES\fR, and \fBRC4\fR are allowed, while \fBRSA\fR and \fBDiffie\-Hellman\fR parameters are accepted if larger than 1023 bits\&. The level provides at least 64\-bit security\&. .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} MACs: all \fBHMAC\fR with \fBSHA\-1\fR or better + all modern MACs (\fBPoly1305\fR etc\&.) .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} Curves: all prime >= 255 bits (including Bernstein curves) .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} Signature algorithms: with \fBSHA1\fR hash or better (\fBDSA\fR allowed) .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fBTLS\fR Ciphers: all available >= 112\-bit key, >= 128\-bit block (including \fBRC4\fR and \fB3DES\fR) .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} Non\-TLS Ciphers: same as \fBTLS\fR ciphers with added \fBCamellia\fR .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} Key exchange: \fBECDHE\fR, \fBRSA\fR, \fBDHE\fR .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fBDH\fR params size: >= 1023 .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fBRSA\fR keys size: >= 1023 .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fBDSA\fR params size: >= 1023 .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fBTLS\fR protocols: \fBTLS\fR >= 1\&.0, \fBDTLS\fR >= 1\&.0 .RE .RE .PP \fBDEFAULT\fR .RS 4 The \fBDEFAULT\fR policy is a reasonable default policy for today\(cqs standards\&. It allows the \fBTLS 1\&.0\fR, \fBTLS 1\&.1\fR, \fBTLS 1\&.2\fR, and \fBTLS 1\&.3\fR protocols, as well as \fBIKEv2\fR and \fBSSH2\fR\&. The \fBDiffie\-Hellman\fR parameters are accepted if they are at least 1023 bits long\&. The level provides at least 80\-bit security\&. .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} MACs: all \fBHMAC\fR with \fBSHA\-1\fR or better + all modern MACs (\fBPoly1305\fR etc\&.) .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} Curves: all prime >= 255 bits (including Bernstein curves) .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} Signature algorithms: with \fBSHA\-1\fR hash or better (no \fBDSA\fR) .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fBTLS\fR Ciphers: >= 128\-bit key, >= 128\-bit block (\fBAES\fR, \fBChaCha20\fR, including \fBAES\-CBC\fR) .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} non\-TLS Ciphers: as \fBTLS\fR Ciphers with added \fBCamellia\fR .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} key exchange: \fBECDHE\fR, \fBRSA\fR, \fBDHE\fR (no \fBDHE\-DSS\fR) .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fBDH\fR params size: >= 1023 .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fBRSA\fR keys size: >= 2048 .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fBTLS\fR protocols: \fBTLS\fR >= 1\&.0, \fBDTLS\fR >= 1\&.0 .RE .RE .PP \fBNEXT\fR .RS 4 The \fBNEXT\fR policy is a policy prepared for the upcoming release of the operating system so it can be easily tested\&. It allows the \fBTLS 1\&.2\fR and \fBTLS 1\&.3\fR protocols, as well as \fBIKEv2\fR and \fBSSH2\fR\&. The \fBRSA\fR and \fBDiffie\-Hellman\fR parameters are accepted if larger than 2047 bits\&. The level provides at least 112\-bit security with the exception of \fBSHA\-1\fR signatures needed for \fBDNSSec\fR and other still prevalent legacy use of \fBSHA\-1\fR signatures\&. .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} MACs: all \fBHMAC\fR with \fBSHA\-1\fR or better + all modern MACs (\fBPoly1305\fR etc\&.) .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} Curves: all prime >= 255 bits (including Bernstein curves) .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} Signature algorithms: with \fBSHA\-1\fR hash or better (no \fBDSA\fR) .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fBTLS\fR Ciphers: >= 128\-bit key, >= 128\-bit block (\fBAES\fR, \fBChaCha20\fR, including \fBAES\-CBC\fR) .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} non\-TLS Ciphers: as \fBTLS\fR Ciphers with added \fBCamellia\fR .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} key exchange: \fBECDHE\fR, \fBRSA\fR, \fBDHE\fR (no \fBDHE\-DSS\fR) .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fBDH\fR params size: >= 2048 .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fBRSA\fR keys size: >= 2048 .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fBTLS\fR protocols: \fBTLS\fR >= 1\&.2, \fBDTLS\fR >= 1\&.2 .RE .RE .PP \fBFUTURE\fR .RS 4 A conservative security level that is believed to withstand any near\-term future attacks\&. This level does not allow the use of \fBSHA\-1\fR in signature algorithms\&. The level also provides some (not complete) preparation for post\-quantum encryption support in form of 256\-bit symmetric encryption requirement\&. The \fBRSA\fR and \fBDiffie\-Hellman\fR parameters are accepted if larger than 3071 bits\&. The level provides at least 128\-bit security\&. .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} MACs: all \fBHMAC\fR with \fBSHA\-256\fR or better + all modern MACs (\fBPoly1305\fR etc\&.) .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} Curves: all prime >= 255 bits (including Bernstein curves) .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} Signature algorithms: with \fBSHA\-256\fR hash or better (no \fBDSA\fR) .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fBTLS\fR Ciphers: >= 256\-bit key, >= 128\-bit block, only Authenticated Encryption (AE) ciphers .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} non\-TLS Ciphers: same as \fBTLS\fR ciphers with added non AE ciphers and \fBCamellia\fR .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} key exchange: \fBECDHE\fR, \fBDHE\fR (no \fBDHE\-DSS\fR, no \fBRSA\fR) .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fBDH\fR params size: >= 3072 .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fBRSA\fR keys size: >= 3072 .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fBTLS\fR protocols: \fBTLS\fR >= 1\&.2, \fBDTLS\fR >= 1\&.2 .RE .RE .PP \fBFIPS\fR .RS 4 A level that conforms to the \fBFIPS 140\-2\fR requirements\&. This policy is used internally by the \fBfips\-mode\-setup(8)\fR tool which can switch the system into the \fBFIPS 140\-2\fR compliance mode\&. The level provides at least 112\-bit security\&. .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} MACs: all \fBHMAC\fR with \fBSHA1\fR or better .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} Curves: all prime >= 256 bits .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} Signature algorithms: with \fBSHA\-256\fR hash or better (no \fBDSA\fR) .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fBTLS\fR Ciphers: >= 128\-bit key, >= 128\-bit block (\fBAES\fR, including \fBAES\-CBC\fR) .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} non\-TLS Ciphers: same as \fBTLS\fR Ciphers .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} key exchange: \fBECDHE\fR, \fBDHE\fR (no \fBDHE\-DSS\fR, no \fBRSA\fR) .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fBDH\fR params size: >= 2048 .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fBRSA\fR params size: >= 2048 .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fBTLS\fR protocols: \fBTLS\fR >= 1\&.2, \fBDTLS\fR >= 1\&.2 .RE .RE .PP \fBEMPTY\fR .RS 4 All cryptographic algorithms are disabled (used for debugging only, do not use)\&. .RE .SH "CRYPTO POLICY DEFINITON FORMAT" .sp The crypto policy definiton files have a simple syntax following an \fBINI\fR file \fBkey\fR = \fBvalue\fR syntax with these particular features: .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} Comments are indicated by \fI#\fR character\&. Everything on the line following the character is ignored\&. .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} Backslash \fI\e\fR character followed immediately with the end\-of\-line character indicates line continuation\&. The following line is concatenated to the current line after the backslash and end\-of\-line characters are removed\&. .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} Value types can be either decimal integers, arbitrary strings, or lists of strings without whitespace characters separated by any number of whitespaces\&. .RE .sp The allowed keys are: .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fBmac\fR: List of allowed MAC algorithms .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fBgroup\fR: List of allowed groups or elliptic curves for key exchanges .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fBhash\fR: List of allowed cryptographic hash (message digest) algorithms .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fBsign\fR: List of allowed signature algorithms .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fBtls_cipher\fR: List of allowed symmetric encryption algorithms (including the modes) for use with the TLS protocol .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fBcipher\fR: List of allowed symmetric encryption algorithms (including the modes) for use with other protocols .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fBkey_exchange\fR: List of allowed key exchange algorithms .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fBprotocol\fR: List of allowed TLS and DTLS protocol versions .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fBike_protocol\fR: List of allowed IKE protocol versions .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fBmin_tls_version\fR: Lowest allowed TLS protocol version .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fBmin_dtls_version\fR: Lowest allowed DTLS protocol version .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fBmin_dh_size\fR: Integer value of minimum number of bits of parameters for \fBDH\fR key exchange .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fBmin_dsa_size\fR: Integer value of minimum number of bits for \fBDSA\fR keys .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fBmin_rsa_size\fR: Integer value of minimum number of bits for \fBRSA\fR keys .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fBsha1_in_certs\fR: Value of 1 if \fBSHA1\fR allowed in certificate signatures, 0 otherwise (Applies to \fBGnuTLS\fR back end only\&.) .RE .sp The full policy definition files have suffix \fI\&.pol\fR, the policy module definition files have suffix \fI\&.pmod\fR\&. The policy module files do not have to have values set for all the keys listed above\&. .sp The lists as set in the base (full policy) are modified by the lists specified in the module files in following way: .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fB\-\fR\fIlist\-item\fR: The \fIlist\-item\fR is removed from the list specified in the base policy\&. .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fB+\fR\fIlist\-item\fR: The \fIlist\-item\fR is inserted at the beginning of the list specified in the base policy\&. The inserts are done in the order of appearance in the policy module file so the actual order in the final list will be reversed\&. .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fIlist\-item\fR or \fIlist\-item\fR\fB+\fR: The list\-item is appended to the end of the list specified in the base policy\&. .RE .sp Non\-list key values in the policy module files are simply overridden\&. .SH "COMMANDS" .PP \fBupdate\-crypto\-policies(8)\fR .RS 4 This command manages the policies available to the various cryptographic back ends and allows the system administrator to change the active cryptographic policy level\&. .RE .PP \fBfips\-mode\-setup(8)\fR .RS 4 This command allows the system administrator to enable, or disable the system FIPS mode and also apply the \fBFIPS\fR cryptographic policy level which limits the allowed algorithms and protocols to these allowed by the FIPS 140\-2 requirements\&. .RE .SH "NOTES" .sp \fBExceptions:\fR .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fBGo\-language\fR applications do not yet follow the system\-wide policy\&. .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fBGnuPG\-2\fR application does not follow the system\-wide policy\&. .RE .sp In general only the data\-in\-transit is currently covered by the system\-wide policy\&. .sp If the system administrator changes the system\-wide policy level with the \fBupdate\-crypto\-policies(8)\fR command it is advisable to restart the system as the individual back\-end libraries read the configuration files usually during their initialization\&. The changes in the policy level thus take place in most cases only when the applications using the back\-end libraries are restarted\&. .sp \fBRemoved cipher suites and protocols\fR .sp The following cipher suites and protocols are completely removed from the core cryptographic libraries listed above: .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fBDES\fR .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} All export grade cipher suites .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fBMD5\fR in signatures .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fBSSLv2\fR .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fBSSLv3\fR .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} All \fBECC\fR curves smaller than 224 bits .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} All binary field \fBECC\fR curves .RE .sp \fBCipher suites and protocols disabled in all policy levels\fR .sp The following ciphersuites and protocols are available but disabled in all crypto policy levels\&. They can be enabled only by explicit configuration of individual applications: .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fBDH\fR with parameters < 1024 bits .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fBRSA\fR with key size < 1024 bits .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fBCamellia\fR .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fBARIA\fR .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fBSEED\fR .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fBIDEA\fR .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} Integrity only ciphersuites .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fBTLS\fR \fBCBC mode\fR ciphersuites using \fBSHA\-384\fR HMAC .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fBAES\-CCM8\fR .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} all \fBECC\fR curves incompatible with \fBTLS 1\&.3\fR, including secp256k1 .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fBIKEv1\fR .RE .SH "FILES" .PP /etc/crypto\-policies/back\-ends .RS 4 The individual cryptographical back\-end configuration files\&. Usually linked to the configuration shipped in the crypto\-policies package unless a configuration from \fBlocal\&.d\fR is added\&. .RE .PP /etc/crypto\-policies/config .RS 4 The active crypto\-policies level set on the system\&. .RE .PP /etc/crypto\-policies/local\&.d .RS 4 Additional configuration shipped by other packages or created by the system administrator\&. The contents of the \fB\-file\&.config\fR is appended to the configuration from the policy back end as shipped in the crypto\-policies package\&. .RE .SH "SEE ALSO" .sp update\-crypto\-policies(8), fips\-mode\-setup(8) .SH "AUTHOR" .sp Written by Tomáš Mráz\&.