Debian Codegraph @

upstream/mageia-cauldron/man7/crypto-policies.7

raw
1 '\" t
2 .\" Title: crypto-policies
3 .\" Author: [see the "AUTHOR" section]
4 .\" Generator: DocBook XSL Stylesheets vsnapshot <http://docbook.sf.net/>
5 .\" Date: 02/15/2026
6 .\" Manual: \ \&
7 .\" Source: crypto-policies
8 .\" Language: English
9 .\"
10 .TH "CRYPTO\-POLICIES" "7" "02/15/2026" "crypto\-policies" "\ \&"
11 .\" -----------------------------------------------------------------
12 .\" * Define some portability stuff
13 .\" -----------------------------------------------------------------
14 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15 .\" http://bugs.debian.org/507673
16 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
17 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18 .ie \n(.g .ds Aq \(aq
19 .el .ds Aq '
20 .\" -----------------------------------------------------------------
21 .\" * set default formatting
22 .\" -----------------------------------------------------------------
23 .\" disable hyphenation
24 .nh
25 .\" disable justification (adjust text to left margin only)
26 .ad l
27 .\" -----------------------------------------------------------------
28 .\" * MAIN CONTENT STARTS HERE *
29 .\" -----------------------------------------------------------------
30 .SH "NAME"
31 crypto-policies \- system\-wide crypto policies overview
32 .SH "DESCRIPTION"
33 .sp
34 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\&.
35 .sp
36 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\&.
37 .sp
38 Several preconfigured policies (\fBDEFAULT\fR, \fBLEGACY\fR, \fBFUTURE\fR, and \fBFIPS\fR) and subpolicies are included in the \fBcrypto\-policies(7)\fR package\&. System administrators or third\-party vendors can define custom policies and subpolicies\&.
39 .sp
40 The recommended way to modify the effective configuration is to apply a custom subpolicy on top of a predefined policy\&. This allows configuration to evolve with future updates of the predefined policies keeping desired modification in place\&. Modifying effective configuration by defining a fully custom policy prevents the configuration from evolving with future updates of the predefined policies\&. The syntax to define custom policies and subpolicies is described in the CRYPTO POLICY DEFINITION FORMAT section below\&.
41 .sp
42 For rationale, see \fBRFC 7457\fR for a list of attacks taking advantage of legacy crypto algorithms\&.
43 .SH "COVERED APPLICATIONS"
44 .sp
45 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\&.
46 .sp
47 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\&.
48 .sp
49 The policies currently provide settings for these applications and libraries:
50 .sp
51 .RS 4
52 .ie n \{\
53 \h'-04'\(bu\h'+03'\c
54 .\}
55 .el \{\
56 .sp -1
57 .IP \(bu 2.3
58 .\}
59 \fBBIND\fR
60 DNS name server daemon (scopes:
61 \fBBIND\fR,
62 \fBDNSSec\fR)
63 .RE
64 .sp
65 .RS 4
66 .ie n \{\
67 \h'-04'\(bu\h'+03'\c
68 .\}
69 .el \{\
70 .sp -1
71 .IP \(bu 2.3
72 .\}
73 \fBGnuTLS\fR
74 TLS library (scopes:
75 \fBGnuTLS\fR,
76 \fBSSL\fR,
77 \fBTLS\fR)
78 .RE
79 .sp
80 .RS 4
81 .ie n \{\
82 \h'-04'\(bu\h'+03'\c
83 .\}
84 .el \{\
85 .sp -1
86 .IP \(bu 2.3
87 .\}
88 \fBOpenJDK\fR
89 runtime environment (scopes:
90 \fBjava\-tls\fR,
91 \fBSSL\fR,
92 \fBTLS\fR)
93 .RE
94 .sp
95 .RS 4
96 .ie n \{\
97 \h'-04'\(bu\h'+03'\c
98 .\}
99 .el \{\
100 .sp -1
101 .IP \(bu 2.3
102 .\}
103 \fBKerberos 5\fR
104 library (scopes:
105 \fBkrb5\fR,
106 \fBKerberos\fR)
107 .RE
108 .sp
109 .RS 4
110 .ie n \{\
111 \h'-04'\(bu\h'+03'\c
112 .\}
113 .el \{\
114 .sp -1
115 .IP \(bu 2.3
116 .\}
117 \fBLibreswan\fR
118 IPsec and IKE protocol implementation (scopes:
119 \fBlibreswan\fR,
120 \fBIPSec\fR,
121 \fBIKE\fR)
122 .RE
123 .sp
124 .RS 4
125 .ie n \{\
126 \h'-04'\(bu\h'+03'\c
127 .\}
128 .el \{\
129 .sp -1
130 .IP \(bu 2.3
131 .\}
132 \fBNSS\fR
133 TLS library (scopes:
134 \fBNSS\fR; specific algorithm usage purposes are also affected by
135 \fBSSL\fR,
136 \fBTLS\fR,
137 \fBpkcs12\fR,
138 \fBpkcs12\-import\fR,
139 \fBsmime\fR,
140 \fBsmime\-import\fR
141 scopes, and internal use
142 \fBnss\-tls\fR,
143 \fBnss\-pkcs12\fR,
144 \fBnss\-pkcs12\-import\fR,
145 \fBnss\-smime\fR
146 and
147 \fBnss\-smime\-import\fR
148 scopes\&.)
149 .RE
150 .sp
151 .RS 4
152 .ie n \{\
153 \h'-04'\(bu\h'+03'\c
154 .\}
155 .el \{\
156 .sp -1
157 .IP \(bu 2.3
158 .\}
159 \fBOpenSSH\fR
160 SSH2 protocol implementation (scopes:
161 \fBOpenSSH\fR,
162 \fBSSH\fR)
163 .RE
164 .sp
165 .RS 4
166 .ie n \{\
167 \h'-04'\(bu\h'+03'\c
168 .\}
169 .el \{\
170 .sp -1
171 .IP \(bu 2.3
172 .\}
173 \fBOpenSSL\fR
174 TLS library (scopes:
175 \fBOpenSSL\fR,
176 \fBSSL\fR,
177 \fBTLS\fR)
178 .RE
179 .sp
180 .RS 4
181 .ie n \{\
182 \h'-04'\(bu\h'+03'\c
183 .\}
184 .el \{\
185 .sp -1
186 .IP \(bu 2.3
187 .\}
188 \fBlibssh\fR
189 SSH2 protocol implementation (scopes:
190 \fBlibssh\fR,
191 \fBSSH\fR)
192 .RE
193 .sp
194 .RS 4
195 .ie n \{\
196 \h'-04'\(bu\h'+03'\c
197 .\}
198 .el \{\
199 .sp -1
200 .IP \(bu 2.3
201 .\}
202 \fBsequoia\fR
203 PGP implementation, for usage outside of rpm\-sequoia (scopes:
204 \fBsequoia\fR)
205 .RE
206 .sp
207 .RS 4
208 .ie n \{\
209 \h'-04'\(bu\h'+03'\c
210 .\}
211 .el \{\
212 .sp -1
213 .IP \(bu 2.3
214 .\}
215 \fBrpm\-sequoia\fR
216 RPM Sequoia PGP backend (scopes:
217 \fBrpm\fR,
218 \fBrpm\-sequoia\fR)
219 .RE
220 .sp
221 Applications using the above libraries and tools are covered by the cryptographic policies unless they are explicitly configured otherwise\&.
222 .SH "PROVIDED POLICIES"
223 .PP
224 \fBLEGACY\fR
225 .RS 4
226 This policy ensures maximum compatibility with legacy systems; it is less secure and it includes support for
227 \fBTLS 1\&.0\fR,
228 \fBTLS 1\&.1\fR, and
229 \fBSSH2\fR
230 protocols or later\&. The algorithms
231 \fBDSA\fR
232 and
233 \fB3DES\fR
234 are allowed, while
235 \fBRSA\fR
236 and
237 \fBDiffie\-Hellman\fR
238 parameters are accepted if larger than 1024 bits\&. This policy provides at least 64\-bit security\&.
239 .sp
240 .RS 4
241 .ie n \{\
242 \h'-04'\(bu\h'+03'\c
243 .\}
244 .el \{\
245 .sp -1
246 .IP \(bu 2.3
247 .\}
248 MACs: all
249 \fBHMAC\fR
250 with
251 \fBSHA\-1\fR
252 or better + all modern MACs (\fBPoly1305\fR
253 etc\&.)
254 .RE
255 .sp
256 .RS 4
257 .ie n \{\
258 \h'-04'\(bu\h'+03'\c
259 .\}
260 .el \{\
261 .sp -1
262 .IP \(bu 2.3
263 .\}
264 Curves: all prime >= 255 bits (including Bernstein curves)
265 .RE
266 .sp
267 .RS 4
268 .ie n \{\
269 \h'-04'\(bu\h'+03'\c
270 .\}
271 .el \{\
272 .sp -1
273 .IP \(bu 2.3
274 .\}
275 Signature algorithms: with
276 \fBSHA1\fR
277 hash or better (\fBDSA\fR
278 allowed)
279 .RE
280 .sp
281 .RS 4
282 .ie n \{\
283 \h'-04'\(bu\h'+03'\c
284 .\}
285 .el \{\
286 .sp -1
287 .IP \(bu 2.3
288 .\}
289 \fBTLS\fR
290 Ciphers: all available >= 112\-bit key, >= 128\-bit block (including
291 \fB3DES\fR, excluding
292 \fBRC4\fR)
293 .RE
294 .sp
295 .RS 4
296 .ie n \{\
297 \h'-04'\(bu\h'+03'\c
298 .\}
299 .el \{\
300 .sp -1
301 .IP \(bu 2.3
302 .\}
303 Non\-TLS Ciphers: same as
304 \fBTLS\fR
305 ciphers with added
306 \fBCamellia\fR
307 .RE
308 .sp
309 .RS 4
310 .ie n \{\
311 \h'-04'\(bu\h'+03'\c
312 .\}
313 .el \{\
314 .sp -1
315 .IP \(bu 2.3
316 .\}
317 Key exchange:
318 \fBECDHE\fR,
319 \fBRSA\fR,
320 \fBDHE\fR
321 .RE
322 .sp
323 .RS 4
324 .ie n \{\
325 \h'-04'\(bu\h'+03'\c
326 .\}
327 .el \{\
328 .sp -1
329 .IP \(bu 2.3
330 .\}
331 \fBDH\fR
332 params size: >= 1024
333 .RE
334 .sp
335 .RS 4
336 .ie n \{\
337 \h'-04'\(bu\h'+03'\c
338 .\}
339 .el \{\
340 .sp -1
341 .IP \(bu 2.3
342 .\}
343 \fBRSA\fR
344 keys size: >= 1024
345 .RE
346 .sp
347 .RS 4
348 .ie n \{\
349 \h'-04'\(bu\h'+03'\c
350 .\}
351 .el \{\
352 .sp -1
353 .IP \(bu 2.3
354 .\}
355 \fBDSA\fR
356 params size: >= 1024
357 .RE
358 .sp
359 .RS 4
360 .ie n \{\
361 \h'-04'\(bu\h'+03'\c
362 .\}
363 .el \{\
364 .sp -1
365 .IP \(bu 2.3
366 .\}
367 \fBTLS\fR
368 protocols:
369 \fBTLS\fR
370 >= 1\&.0,
371 \fBDTLS\fR
372 >= 1\&.0
373 .RE
374 .RE
375 .PP
376 \fBDEFAULT\fR
377 .RS 4
378 The
379 \fBDEFAULT\fR
380 policy is a reasonable default policy for today\(cqs standards\&. It allows the
381 \fBTLS 1\&.2\fR, and
382 \fBTLS 1\&.3\fR
383 protocols, as well as
384 \fBIKEv2\fR
385 and
386 \fBSSH2\fR\&. The
387 \fBDiffie\-Hellman\fR
388 parameters are accepted if they are at least 2048 bits long\&. This policy provides at least 112\-bit security with the exception of allowing
389 \fBSHA\-1\fR
390 signatures in DNSSec where they are still prevalent\&.
391 .sp
392 .RS 4
393 .ie n \{\
394 \h'-04'\(bu\h'+03'\c
395 .\}
396 .el \{\
397 .sp -1
398 .IP \(bu 2.3
399 .\}
400 MACs: all
401 \fBHMAC\fR
402 with
403 \fBSHA\-1\fR
404 or better + all modern MACs (\fBPoly1305\fR
405 etc\&.)
406 .RE
407 .sp
408 .RS 4
409 .ie n \{\
410 \h'-04'\(bu\h'+03'\c
411 .\}
412 .el \{\
413 .sp -1
414 .IP \(bu 2.3
415 .\}
416 Curves: all prime >= 255 bits (including Bernstein curves)
417 .RE
418 .sp
419 .RS 4
420 .ie n \{\
421 \h'-04'\(bu\h'+03'\c
422 .\}
423 .el \{\
424 .sp -1
425 .IP \(bu 2.3
426 .\}
427 Signature algorithms: with
428 \fBSHA\-224\fR
429 hash or better (no
430 \fBDSA\fR)
431 .RE
432 .sp
433 .RS 4
434 .ie n \{\
435 \h'-04'\(bu\h'+03'\c
436 .\}
437 .el \{\
438 .sp -1
439 .IP \(bu 2.3
440 .\}
441 \fBTLS\fR
442 Ciphers: >= 128\-bit key, >= 128\-bit block (\fBAES\fR,
443 \fBChaCha20\fR, including
444 \fBAES\-CBC\fR)
445 .RE
446 .sp
447 .RS 4
448 .ie n \{\
449 \h'-04'\(bu\h'+03'\c
450 .\}
451 .el \{\
452 .sp -1
453 .IP \(bu 2.3
454 .\}
455 non\-TLS Ciphers: as
456 \fBTLS\fR
457 Ciphers with added
458 \fBCamellia\fR
459 .RE
460 .sp
461 .RS 4
462 .ie n \{\
463 \h'-04'\(bu\h'+03'\c
464 .\}
465 .el \{\
466 .sp -1
467 .IP \(bu 2.3
468 .\}
469 key exchange:
470 \fBECDHE\fR,
471 \fBRSA\fR,
472 \fBDHE\fR
473 (no
474 \fBDHE\-DSS\fR)
475 .RE
476 .sp
477 .RS 4
478 .ie n \{\
479 \h'-04'\(bu\h'+03'\c
480 .\}
481 .el \{\
482 .sp -1
483 .IP \(bu 2.3
484 .\}
485 \fBDH\fR
486 params size: >= 2048
487 .RE
488 .sp
489 .RS 4
490 .ie n \{\
491 \h'-04'\(bu\h'+03'\c
492 .\}
493 .el \{\
494 .sp -1
495 .IP \(bu 2.3
496 .\}
497 \fBRSA\fR
498 keys size: >= 2048
499 .RE
500 .sp
501 .RS 4
502 .ie n \{\
503 \h'-04'\(bu\h'+03'\c
504 .\}
505 .el \{\
506 .sp -1
507 .IP \(bu 2.3
508 .\}
509 \fBTLS\fR
510 protocols:
511 \fBTLS\fR
512 >= 1\&.2,
513 \fBDTLS\fR
514 >= 1\&.2
515 .RE
516 .RE
517 .PP
518 \fBNEXT\fR
519 .RS 4
520 The
521 \fBNEXT\fR
522 policy is just an alias to the
523 \fBDEFAULT\fR
524 policy\&.
525 .RE
526 .PP
527 \fBFUTURE\fR
528 .RS 4
529 A conservative security policy that is believed to withstand any near\-term future attacks at the expense of interoperability\&. It may prevent communication with many commonly used systems that only offer weaker security\&. This policy does not allow the use of
530 \fBSHA\-1\fR
531 in signature algorithms\&. The policy also provides some (not complete) preparation for post\-quantum encryption support in form of 256\-bit symmetric encryption requirement\&. The
532 \fBRSA\fR
533 and
534 \fBDiffie\-Hellman\fR
535 parameters are accepted if larger than 3071 bits\&. This policy provides at least 128\-bit security\&.
536 .sp
537 .RS 4
538 .ie n \{\
539 \h'-04'\(bu\h'+03'\c
540 .\}
541 .el \{\
542 .sp -1
543 .IP \(bu 2.3
544 .\}
545 MACs: all
546 \fBHMAC\fR
547 with
548 \fBSHA\-256\fR
549 or better + all modern MACs (\fBPoly1305\fR
550 etc\&.)
551 .RE
552 .sp
553 .RS 4
554 .ie n \{\
555 \h'-04'\(bu\h'+03'\c
556 .\}
557 .el \{\
558 .sp -1
559 .IP \(bu 2.3
560 .\}
561 Curves: all prime >= 255 bits (including Bernstein curves)
562 .RE
563 .sp
564 .RS 4
565 .ie n \{\
566 \h'-04'\(bu\h'+03'\c
567 .\}
568 .el \{\
569 .sp -1
570 .IP \(bu 2.3
571 .\}
572 Signature algorithms: with
573 \fBSHA\-256\fR
574 hash or better (no
575 \fBDSA\fR)
576 .RE
577 .sp
578 .RS 4
579 .ie n \{\
580 \h'-04'\(bu\h'+03'\c
581 .\}
582 .el \{\
583 .sp -1
584 .IP \(bu 2.3
585 .\}
586 \fBTLS\fR
587 Ciphers: >= 256\-bit key, >= 128\-bit block, only Authenticated Encryption (AE) ciphers
588 .RE
589 .sp
590 .RS 4
591 .ie n \{\
592 \h'-04'\(bu\h'+03'\c
593 .\}
594 .el \{\
595 .sp -1
596 .IP \(bu 2.3
597 .\}
598 non\-TLS Ciphers: same as
599 \fBTLS\fR
600 ciphers with added non AE ciphers and
601 \fBCamellia\fR
602 .RE
603 .sp
604 .RS 4
605 .ie n \{\
606 \h'-04'\(bu\h'+03'\c
607 .\}
608 .el \{\
609 .sp -1
610 .IP \(bu 2.3
611 .\}
612 key exchange:
613 \fBECDHE\fR,
614 \fBDHE\fR
615 (no
616 \fBDHE\-DSS\fR, no
617 \fBRSA\fR)
618 .RE
619 .sp
620 .RS 4
621 .ie n \{\
622 \h'-04'\(bu\h'+03'\c
623 .\}
624 .el \{\
625 .sp -1
626 .IP \(bu 2.3
627 .\}
628 \fBDH\fR
629 params size: >= 3072
630 .RE
631 .sp
632 .RS 4
633 .ie n \{\
634 \h'-04'\(bu\h'+03'\c
635 .\}
636 .el \{\
637 .sp -1
638 .IP \(bu 2.3
639 .\}
640 \fBRSA\fR
641 keys size: >= 3072
642 .RE
643 .sp
644 .RS 4
645 .ie n \{\
646 \h'-04'\(bu\h'+03'\c
647 .\}
648 .el \{\
649 .sp -1
650 .IP \(bu 2.3
651 .\}
652 \fBTLS\fR
653 protocols:
654 \fBTLS\fR
655 >= 1\&.2,
656 \fBDTLS\fR
657 >= 1\&.2
658 .RE
659 .RE
660 .PP
661 \fBBSI\fR
662 .RS 4
663 A security policy based on recommendations by the german government agency BSI (Bundesamt fuer Sicherheit in der Informationstechnik, translated as "agency for security in software technology") in its ruleset BSI TR 02102 (TR \- technical recommendation)\&. The BSI TR 02102 standard is updated in regular intervals\&.
664 .sp
665 .if n \{\
666 .RS 4
667 .\}
668 .nf
669 This policy does not allow the use of *SHA\-1* in signature algorithms
670 (except *DNSSEC* and *RPM*)\&.
671 .fi
672 .if n \{\
673 .RE
674 .\}
675 .sp
676 .if n \{\
677 .RS 4
678 .\}
679 .nf
680 The policy also provides some (not complete) preparation for
681 post\-quantum encryption support in form of 256\-bit symmetric encryption
682 requirement\&.
683 .fi
684 .if n \{\
685 .RE
686 .\}
687 .sp
688 .if n \{\
689 .RS 4
690 .\}
691 .nf
692 The *RSA* parameters are accepted if larger than 2047 bits, and
693 *Diffie\-Hellman* parameters are accepted if larger than 3071 bits\&.
694 .fi
695 .if n \{\
696 .RE
697 .\}
698 .sp
699 .if n \{\
700 .RS 4
701 .\}
702 .nf
703 This policy provides at least 128\-bit security, excepting the transition
704 of *RSA*\&.
705 .fi
706 .if n \{\
707 .RE
708 .\}
709 .sp
710 .RS 4
711 .ie n \{\
712 \h'-04'\(bu\h'+03'\c
713 .\}
714 .el \{\
715 .sp -1
716 .IP \(bu 2.3
717 .\}
718 MACs: all
719 \fBHMAC\fR
720 with
721 \fBSHA\-256\fR
722 or better + all modern MACs
723 .RE
724 .sp
725 .RS 4
726 .ie n \{\
727 \h'-04'\(bu\h'+03'\c
728 .\}
729 .el \{\
730 .sp -1
731 .IP \(bu 2.3
732 .\}
733 Curves: all prime >= 255 bits (including Bernstein curves)
734 .RE
735 .sp
736 .RS 4
737 .ie n \{\
738 \h'-04'\(bu\h'+03'\c
739 .\}
740 .el \{\
741 .sp -1
742 .IP \(bu 2.3
743 .\}
744 Signature algorithms: with
745 \fBSHA\-256\fR
746 hash or better (no
747 \fBDSA\fR)
748 .RE
749 .sp
750 .RS 4
751 .ie n \{\
752 \h'-04'\(bu\h'+03'\c
753 .\}
754 .el \{\
755 .sp -1
756 .IP \(bu 2.3
757 .\}
758 \fBTLS\fR
759 Ciphers: >= 256\-bit key, >= 128\-bit block, only Authenticated Encryption (AE) ciphers
760 .RE
761 .sp
762 .RS 4
763 .ie n \{\
764 \h'-04'\(bu\h'+03'\c
765 .\}
766 .el \{\
767 .sp -1
768 .IP \(bu 2.3
769 .\}
770 non\-TLS Ciphers: same as
771 \fBTLS\fR
772 ciphers with added non AE ciphers
773 .RE
774 .sp
775 .RS 4
776 .ie n \{\
777 \h'-04'\(bu\h'+03'\c
778 .\}
779 .el \{\
780 .sp -1
781 .IP \(bu 2.3
782 .\}
783 key exchange:
784 \fBECDHE\fR,
785 \fBDHE\fR
786 (no
787 \fBDHE\-DSS\fR, no
788 \fBRSA\fR)
789 .RE
790 .sp
791 .RS 4
792 .ie n \{\
793 \h'-04'\(bu\h'+03'\c
794 .\}
795 .el \{\
796 .sp -1
797 .IP \(bu 2.3
798 .\}
799 \fBDH\fR
800 params size: >= 3072
801 .RE
802 .sp
803 .RS 4
804 .ie n \{\
805 \h'-04'\(bu\h'+03'\c
806 .\}
807 .el \{\
808 .sp -1
809 .IP \(bu 2.3
810 .\}
811 \fBRSA\fR
812 keys size: >= 2048 (until end of 2023, then it will switch to 3072)
813 .RE
814 .sp
815 .RS 4
816 .ie n \{\
817 \h'-04'\(bu\h'+03'\c
818 .\}
819 .el \{\
820 .sp -1
821 .IP \(bu 2.3
822 .\}
823 \fBTLS\fR
824 protocols:
825 \fBTLS\fR
826 >= 1\&.2,
827 \fBDTLS\fR
828 >= 1\&.2
829 .sp
830 .if n \{\
831 .RS 4
832 .\}
833 .nf
834 Note that compared to others profiles *Chacha20* and *Camellia* are not
835 recommended by the BSI\&.
836 .fi
837 .if n \{\
838 .RE
839 .\}
840 .RE
841 .RE
842 .PP
843 \fBFIPS\fR
844 .RS 4
845 A policy to aid conformance to the
846 \fBFIPS 140\fR
847 requirements\&. This policy is used automatically by a dracut initramfs module and a systemd service if the kernel is booted with
848 fips=1
849 to switch the system into the
850 \fBFIPS 140\fR
851 mode\&. This policy provides at least 112\-bit security\&.
852 .sp
853 .RS 4
854 .ie n \{\
855 \h'-04'\(bu\h'+03'\c
856 .\}
857 .el \{\
858 .sp -1
859 .IP \(bu 2.3
860 .\}
861 MACs: all
862 \fBHMAC\fR
863 with
864 \fBSHA1\fR
865 or better
866 .RE
867 .sp
868 .RS 4
869 .ie n \{\
870 \h'-04'\(bu\h'+03'\c
871 .\}
872 .el \{\
873 .sp -1
874 .IP \(bu 2.3
875 .\}
876 Curves: all prime >= 256 bits
877 .RE
878 .sp
879 .RS 4
880 .ie n \{\
881 \h'-04'\(bu\h'+03'\c
882 .\}
883 .el \{\
884 .sp -1
885 .IP \(bu 2.3
886 .\}
887 Signature algorithms: with
888 \fBSHA\-256\fR
889 hash or better (no
890 \fBDSA\fR)
891 .RE
892 .sp
893 .RS 4
894 .ie n \{\
895 \h'-04'\(bu\h'+03'\c
896 .\}
897 .el \{\
898 .sp -1
899 .IP \(bu 2.3
900 .\}
901 \fBTLS\fR
902 Ciphers: >= 128\-bit key, >= 128\-bit block (\fBAES\fR, including
903 \fBAES\-CBC\fR)
904 .RE
905 .sp
906 .RS 4
907 .ie n \{\
908 \h'-04'\(bu\h'+03'\c
909 .\}
910 .el \{\
911 .sp -1
912 .IP \(bu 2.3
913 .\}
914 non\-TLS Ciphers: same as
915 \fBTLS\fR
916 Ciphers
917 .RE
918 .sp
919 .RS 4
920 .ie n \{\
921 \h'-04'\(bu\h'+03'\c
922 .\}
923 .el \{\
924 .sp -1
925 .IP \(bu 2.3
926 .\}
927 key exchange:
928 \fBECDHE\fR,
929 \fBDHE\fR
930 (no
931 \fBDHE\-DSS\fR, no
932 \fBRSA\fR)
933 .RE
934 .sp
935 .RS 4
936 .ie n \{\
937 \h'-04'\(bu\h'+03'\c
938 .\}
939 .el \{\
940 .sp -1
941 .IP \(bu 2.3
942 .\}
943 \fBDH\fR
944 params size: >= 2048
945 .RE
946 .sp
947 .RS 4
948 .ie n \{\
949 \h'-04'\(bu\h'+03'\c
950 .\}
951 .el \{\
952 .sp -1
953 .IP \(bu 2.3
954 .\}
955 \fBRSA\fR
956 params size: >= 2048
957 .RE
958 .sp
959 .RS 4
960 .ie n \{\
961 \h'-04'\(bu\h'+03'\c
962 .\}
963 .el \{\
964 .sp -1
965 .IP \(bu 2.3
966 .\}
967 \fBTLS\fR
968 protocols:
969 \fBTLS\fR
970 >= 1\&.2,
971 \fBDTLS\fR
972 >= 1\&.2
973 .RE
974 .RE
975 .PP
976 \fBEMPTY\fR
977 .RS 4
978 All cryptographic algorithms are disabled (used for debugging only, do not use)\&.
979 .RE
980 .SH "CRYPTO POLICY DEFINITION FORMAT"
981 .sp
982 The crypto policy definition files have a simple syntax following an \fBINI\fR file \fIkey\fR = \fIvalue\fR syntax with these particular features:
983 .sp
984 .RS 4
985 .ie n \{\
986 \h'-04'\(bu\h'+03'\c
987 .\}
988 .el \{\
989 .sp -1
990 .IP \(bu 2.3
991 .\}
992 Comments are indicated by
993 \fI#\fR
994 character\&. Everything on the line following the character is ignored\&.
995 .RE
996 .sp
997 .RS 4
998 .ie n \{\
999 \h'-04'\(bu\h'+03'\c
1000 .\}
1001 .el \{\
1002 .sp -1
1003 .IP \(bu 2.3
1004 .\}
1005 Backslash
1006 \fI\e\fR
1007 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\&.
1008 .RE
1009 .sp
1010 .RS 4
1011 .ie n \{\
1012 \h'-04'\(bu\h'+03'\c
1013 .\}
1014 .el \{\
1015 .sp -1
1016 .IP \(bu 2.3
1017 .\}
1018 Value types for integer options can be decimal integers (\fIoption = 1\fR)\&.
1019 .RE
1020 .sp
1021 .RS 4
1022 .ie n \{\
1023 \h'-04'\(bu\h'+03'\c
1024 .\}
1025 .el \{\
1026 .sp -1
1027 .IP \(bu 2.3
1028 .\}
1029 Multiple\-choice options can be specified by setting them to a list of values (\fIoption = value1 value2\fR)\&. This list can further be altered by prepending/omitting/appending values (\fIoption = \fR\fIprepended \-omitted appended\fR)\&. A follow\-up reassignment will reset the list\&. The latter syntax cannot be combined with the former one in the same directive\&. Setting an option to an empty list is possible with
1030 \fIoption =\fR\&.
1031 .RE
1032 .sp
1033 .RS 4
1034 .ie n \{\
1035 \h'-04'\(bu\h'+03'\c
1036 .\}
1037 .el \{\
1038 .sp -1
1039 .IP \(bu 2.3
1040 .\}
1041 Asterisk sign can be used for wildcard matching as a shortcut for specifying multiple values when setting multiple\-choice options\&. Note that wildcard matching can lead to future updates implicitly enabling algorithms not yet available in the current version\&. If this is a concern, do not use wildcard\-matching outside of algorithm\-omitting directives\&.
1042 .RE
1043 .sp
1044 .RS 4
1045 .ie n \{\
1046 \h'-04'\(bu\h'+03'\c
1047 .\}
1048 .el \{\
1049 .sp -1
1050 .IP \(bu 2.3
1051 .\}
1052 In order to limit the scope of the directive and make it affect just some of the backends, the following extended syntax can be used:
1053 \fIoption@scope = \&...\fR,
1054 \fIoption@{scope1,scope2,\&...} = \&...\fR\&. Negation of scopes is possible with
1055 \fIoption@!scope\fR
1056 / \*(Aqoption@{scope1,scope2,\&...}\&. Scope selectors are case\-insensitive\&.
1057 .RE
1058 .sp
1059 The available options are:
1060 .sp
1061 .RS 4
1062 .ie n \{\
1063 \h'-04'\(bu\h'+03'\c
1064 .\}
1065 .el \{\
1066 .sp -1
1067 .IP \(bu 2.3
1068 .\}
1069 \fBmac\fR: List of allowed MAC algorithms
1070 .RE
1071 .sp
1072 .RS 4
1073 .ie n \{\
1074 \h'-04'\(bu\h'+03'\c
1075 .\}
1076 .el \{\
1077 .sp -1
1078 .IP \(bu 2.3
1079 .\}
1080 \fBgroup\fR: List of allowed groups or elliptic curves for key exchanges for use with other protocols
1081 .RE
1082 .sp
1083 .RS 4
1084 .ie n \{\
1085 \h'-04'\(bu\h'+03'\c
1086 .\}
1087 .el \{\
1088 .sp -1
1089 .IP \(bu 2.3
1090 .\}
1091 \fBhash\fR: List of allowed cryptographic hash (message digest) algorithms
1092 .RE
1093 .sp
1094 .RS 4
1095 .ie n \{\
1096 \h'-04'\(bu\h'+03'\c
1097 .\}
1098 .el \{\
1099 .sp -1
1100 .IP \(bu 2.3
1101 .\}
1102 \fBsign\fR: List of allowed signature algorithms
1103 .RE
1104 .sp
1105 .RS 4
1106 .ie n \{\
1107 \h'-04'\(bu\h'+03'\c
1108 .\}
1109 .el \{\
1110 .sp -1
1111 .IP \(bu 2.3
1112 .\}
1113 \fBcipher\fR: List of allowed symmetric encryption algorithms (including the modes) for use with other protocols
1114 .RE
1115 .sp
1116 .RS 4
1117 .ie n \{\
1118 \h'-04'\(bu\h'+03'\c
1119 .\}
1120 .el \{\
1121 .sp -1
1122 .IP \(bu 2.3
1123 .\}
1124 \fBkey_exchange\fR: List of allowed key exchange algorithms
1125 .RE
1126 .sp
1127 .RS 4
1128 .ie n \{\
1129 \h'-04'\(bu\h'+03'\c
1130 .\}
1131 .el \{\
1132 .sp -1
1133 .IP \(bu 2.3
1134 .\}
1135 \fBprotocol\fR: List of allowed TLS, DTLS and IKE protocol versions; mind that some backends do not allow selectively disabling protocols versions and only use the oldest version as the lower boundary\&.
1136 .RE
1137 .sp
1138 .RS 4
1139 .ie n \{\
1140 \h'-04'\(bu\h'+03'\c
1141 .\}
1142 .el \{\
1143 .sp -1
1144 .IP \(bu 2.3
1145 .\}
1146 \fBmin_dh_size\fR: Integer value of minimum number of bits of parameters for
1147 \fBDH\fR
1148 key exchange
1149 .RE
1150 .sp
1151 .RS 4
1152 .ie n \{\
1153 \h'-04'\(bu\h'+03'\c
1154 .\}
1155 .el \{\
1156 .sp -1
1157 .IP \(bu 2.3
1158 .\}
1159 \fBmin_dsa_size\fR: Integer value of minimum number of bits for
1160 \fBDSA\fR
1161 keys
1162 .RE
1163 .sp
1164 .RS 4
1165 .ie n \{\
1166 \h'-04'\(bu\h'+03'\c
1167 .\}
1168 .el \{\
1169 .sp -1
1170 .IP \(bu 2.3
1171 .\}
1172 \fBmin_rsa_size\fR: Integer value of minimum number of bits for
1173 \fBRSA\fR
1174 keys
1175 .RE
1176 .sp
1177 .RS 4
1178 .ie n \{\
1179 \h'-04'\(bu\h'+03'\c
1180 .\}
1181 .el \{\
1182 .sp -1
1183 .IP \(bu 2.3
1184 .\}
1185 \fBmin_ec_size\fR: Integer value of minimum number of bits for
1186 \fBEC\fR
1187 keys (Applies to
1188 \fBJava\fR
1189 back end only)
1190 .RE
1191 .sp
1192 .RS 4
1193 .ie n \{\
1194 \h'-04'\(bu\h'+03'\c
1195 .\}
1196 .el \{\
1197 .sp -1
1198 .IP \(bu 2.3
1199 .\}
1200 \fBsha1_in_certs\fR: Value of 1 if
1201 \fBSHA1\fR
1202 allowed in certificate signatures, 0 otherwise (Applies to
1203 \fBGnuTLS\fR
1204 back end only\&.)
1205 .RE
1206 .sp
1207 .RS 4
1208 .ie n \{\
1209 \h'-04'\(bu\h'+03'\c
1210 .\}
1211 .el \{\
1212 .sp -1
1213 .IP \(bu 2.3
1214 .\}
1215 \fBarbitrary_dh_groups\fR: Value of 1 if arbitrary group in
1216 \fBDiffie\-Hellman\fR
1217 is allowed, 0 otherwise
1218 .RE
1219 .sp
1220 .RS 4
1221 .ie n \{\
1222 \h'-04'\(bu\h'+03'\c
1223 .\}
1224 .el \{\
1225 .sp -1
1226 .IP \(bu 2.3
1227 .\}
1228 \fBssh_certs\fR: Value of 1 if
1229 \fBOpenSSH\fR
1230 certificate authentication is allowed, 0 otherwise
1231 .RE
1232 .sp
1233 .RS 4
1234 .ie n \{\
1235 \h'-04'\(bu\h'+03'\c
1236 .\}
1237 .el \{\
1238 .sp -1
1239 .IP \(bu 2.3
1240 .\}
1241 \fBetm\fR:
1242 \fBANY\fR/\fBDISABLE_ETM\fR/\fBDISABLE_NON_ETM\fR
1243 allows both EtM (Encrypt\-then\-Mac) and E&M (Encrypt\-and\-Mac), disables EtM, and disables E&M respectively\&. (Currently only implemented for SSH, do not use without
1244 \fB@SSH\fR
1245 scope\&.)
1246 .RE
1247 .sp
1248 Full policy definition files have suffix \&.pol, subpolicy files have suffix \&.pmod\&. Subpolicies do not have to have values set for all the keys listed above\&.
1249 .sp
1250 The effective configuration of a policy with subpolicies applied is the same as a configuration from a single policy obtained by concatenating the policy and the subpolicies in question\&.
1251 .sp
1252 \fBPolicy file placement and naming:\fR
1253 .sp
1254 The policy files shipped in packages are placed in /usr/share/crypto\-policies/policies and the subpolicies in /usr/share/crypto\-policies/policies/modules\&.
1255 .sp
1256 Locally configured policy files should be placed in /etc/crypto\-policies/policies and subpolicies in /etc/crypto\-policies/policies/modules\&.
1257 .sp
1258 The policy and subpolicy files must have names in upper\-case except for the \&.pol and \&.pmod suffix as the update\-crypto\-policies command always converts the policy name to upper\-case before searching for the policy on the filesystem\&.
1259 .SH "COMMANDS"
1260 .PP
1261 \fBupdate\-crypto\-policies(8)\fR
1262 .RS 4
1263 This command manages the policies available to the various cryptographic back ends and allows the system administrator to change the active cryptographic policy\&.
1264 .RE
1265 .SH "NOTES"
1266 .sp
1267 \fBKnown notable exceptions\fR
1268 .sp
1269 .RS 4
1270 .ie n \{\
1271 \h'-04'\(bu\h'+03'\c
1272 .\}
1273 .el \{\
1274 .sp -1
1275 .IP \(bu 2.3
1276 .\}
1277 \fBGo\-language\fR
1278 applications do not yet follow the system\-wide policy\&.
1279 .RE
1280 .sp
1281 .RS 4
1282 .ie n \{\
1283 \h'-04'\(bu\h'+03'\c
1284 .\}
1285 .el \{\
1286 .sp -1
1287 .IP \(bu 2.3
1288 .\}
1289 \fBGnuPG\-2\fR
1290 application does not follow the system\-wide policy\&.
1291 .RE
1292 .sp
1293 In general only the data\-in\-transit is currently covered by the system\-wide policy\&.
1294 .sp
1295 If the system administrator changes the system\-wide policy 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 thus take place in most cases only when the applications using the back\-end libraries are restarted\&.
1296 .sp
1297 \fBRemoved cipher suites and protocols\fR
1298 .sp
1299 The following cipher suites and protocols are completely removed from the core cryptographic libraries listed above:
1300 .sp
1301 .RS 4
1302 .ie n \{\
1303 \h'-04'\(bu\h'+03'\c
1304 .\}
1305 .el \{\
1306 .sp -1
1307 .IP \(bu 2.3
1308 .\}
1309 \fBDES\fR
1310 .RE
1311 .sp
1312 .RS 4
1313 .ie n \{\
1314 \h'-04'\(bu\h'+03'\c
1315 .\}
1316 .el \{\
1317 .sp -1
1318 .IP \(bu 2.3
1319 .\}
1320 All export grade cipher suites
1321 .RE
1322 .sp
1323 .RS 4
1324 .ie n \{\
1325 \h'-04'\(bu\h'+03'\c
1326 .\}
1327 .el \{\
1328 .sp -1
1329 .IP \(bu 2.3
1330 .\}
1331 \fBMD5\fR
1332 in signatures
1333 .RE
1334 .sp
1335 .RS 4
1336 .ie n \{\
1337 \h'-04'\(bu\h'+03'\c
1338 .\}
1339 .el \{\
1340 .sp -1
1341 .IP \(bu 2.3
1342 .\}
1343 \fBSSLv2\fR
1344 .RE
1345 .sp
1346 .RS 4
1347 .ie n \{\
1348 \h'-04'\(bu\h'+03'\c
1349 .\}
1350 .el \{\
1351 .sp -1
1352 .IP \(bu 2.3
1353 .\}
1354 \fBSSLv3\fR
1355 .RE
1356 .sp
1357 .RS 4
1358 .ie n \{\
1359 \h'-04'\(bu\h'+03'\c
1360 .\}
1361 .el \{\
1362 .sp -1
1363 .IP \(bu 2.3
1364 .\}
1365 All
1366 \fBECC\fR
1367 curves smaller than 224 bits
1368 .RE
1369 .sp
1370 .RS 4
1371 .ie n \{\
1372 \h'-04'\(bu\h'+03'\c
1373 .\}
1374 .el \{\
1375 .sp -1
1376 .IP \(bu 2.3
1377 .\}
1378 All binary field
1379 \fBECC\fR
1380 curves
1381 .RE
1382 .sp
1383 \fBCipher suites and protocols disabled in all predefined policies\fR
1384 .sp
1385 The following ciphersuites and protocols are available but disabled in all predefined crypto policies:
1386 .sp
1387 .RS 4
1388 .ie n \{\
1389 \h'-04'\(bu\h'+03'\c
1390 .\}
1391 .el \{\
1392 .sp -1
1393 .IP \(bu 2.3
1394 .\}
1395 \fBDH\fR
1396 with parameters < 1024 bits
1397 .RE
1398 .sp
1399 .RS 4
1400 .ie n \{\
1401 \h'-04'\(bu\h'+03'\c
1402 .\}
1403 .el \{\
1404 .sp -1
1405 .IP \(bu 2.3
1406 .\}
1407 \fBRSA\fR
1408 with key size < 1024 bits
1409 .RE
1410 .sp
1411 .RS 4
1412 .ie n \{\
1413 \h'-04'\(bu\h'+03'\c
1414 .\}
1415 .el \{\
1416 .sp -1
1417 .IP \(bu 2.3
1418 .\}
1419 \fBCamellia\fR
1420 .RE
1421 .sp
1422 .RS 4
1423 .ie n \{\
1424 \h'-04'\(bu\h'+03'\c
1425 .\}
1426 .el \{\
1427 .sp -1
1428 .IP \(bu 2.3
1429 .\}
1430 \fBRC4\fR
1431 .RE
1432 .sp
1433 .RS 4
1434 .ie n \{\
1435 \h'-04'\(bu\h'+03'\c
1436 .\}
1437 .el \{\
1438 .sp -1
1439 .IP \(bu 2.3
1440 .\}
1441 \fBARIA\fR
1442 .RE
1443 .sp
1444 .RS 4
1445 .ie n \{\
1446 \h'-04'\(bu\h'+03'\c
1447 .\}
1448 .el \{\
1449 .sp -1
1450 .IP \(bu 2.3
1451 .\}
1452 \fBSEED\fR
1453 .RE
1454 .sp
1455 .RS 4
1456 .ie n \{\
1457 \h'-04'\(bu\h'+03'\c
1458 .\}
1459 .el \{\
1460 .sp -1
1461 .IP \(bu 2.3
1462 .\}
1463 \fBIDEA\fR
1464 .RE
1465 .sp
1466 .RS 4
1467 .ie n \{\
1468 \h'-04'\(bu\h'+03'\c
1469 .\}
1470 .el \{\
1471 .sp -1
1472 .IP \(bu 2.3
1473 .\}
1474 Integrity only ciphersuites
1475 .RE
1476 .sp
1477 .RS 4
1478 .ie n \{\
1479 \h'-04'\(bu\h'+03'\c
1480 .\}
1481 .el \{\
1482 .sp -1
1483 .IP \(bu 2.3
1484 .\}
1485 \fBTLS\fR
1486 \fBCBC mode\fR
1487 ciphersuites using
1488 \fBSHA\-384\fR
1489 HMAC
1490 .RE
1491 .sp
1492 .RS 4
1493 .ie n \{\
1494 \h'-04'\(bu\h'+03'\c
1495 .\}
1496 .el \{\
1497 .sp -1
1498 .IP \(bu 2.3
1499 .\}
1500 \fBAES\-CCM8\fR
1501 .RE
1502 .sp
1503 .RS 4
1504 .ie n \{\
1505 \h'-04'\(bu\h'+03'\c
1506 .\}
1507 .el \{\
1508 .sp -1
1509 .IP \(bu 2.3
1510 .\}
1511 all
1512 \fBECC\fR
1513 curves incompatible with
1514 \fBTLS 1\&.3\fR, including secp256k1
1515 .RE
1516 .sp
1517 .RS 4
1518 .ie n \{\
1519 \h'-04'\(bu\h'+03'\c
1520 .\}
1521 .el \{\
1522 .sp -1
1523 .IP \(bu 2.3
1524 .\}
1525 \fBIKEv1\fR
1526 .RE
1527 .sp
1528 \fBNotable irregularities in the individual configuration generators\fR
1529 .sp
1530 .RS 4
1531 .ie n \{\
1532 \h'-04'\(bu\h'+03'\c
1533 .\}
1534 .el \{\
1535 .sp -1
1536 .IP \(bu 2.3
1537 .\}
1538 \fBOpenSSL\fR
1539 and
1540 \fBNSS\fR: Disabling all TLS and/or all DTLS versions isn\(cqt actually possible\&. Trying to do so will result in the library defaults being applied instead\&.
1541 .RE
1542 .sp
1543 .RS 4
1544 .ie n \{\
1545 \h'-04'\(bu\h'+03'\c
1546 .\}
1547 .el \{\
1548 .sp -1
1549 .IP \(bu 2.3
1550 .\}
1551 \fBOpenSSL\fR: The minimum length of the keys and some other parameters are enforced by the @SECLEVEL value which does not provide a fine granularity\&. The list of
1552 \fBTLS\fR
1553 ciphers is not generated as an exact list but by subtracting from all the supported ciphers for the enabled key exchange methods\&. For that reason there is no way to disable a random cipher\&. In particular all
1554 \fBAES\-128\fR
1555 ciphers are disabled if the
1556 \fBAES\-128\-GCM\fR
1557 is not present in the list; all
1558 \fBAES\-256\fR
1559 ciphers are disabled if the
1560 \fBAES\-256\-GCM\fR
1561 is not present\&. The
1562 \fBCBC\fR
1563 ciphers are disabled if there isn\(cqt
1564 \fBHMAC\-SHA1\fR
1565 in the hmac list and
1566 \fBAES\-256\-CBC\fR
1567 in the cipher list\&. To disable the
1568 \fBCCM\fR
1569 ciphers both
1570 \fBAES\-128\-CCM\fR
1571 and
1572 \fBAES\-256\-CCM\fR
1573 must not be present in the cipher list\&.
1574 .RE
1575 .sp
1576 .RS 4
1577 .ie n \{\
1578 \h'-04'\(bu\h'+03'\c
1579 .\}
1580 .el \{\
1581 .sp -1
1582 .IP \(bu 2.3
1583 .\}
1584 \fBGnuTLS\fR: The minimum length of the keys and some other parameters are enforced by min\-verification\-profile setting in the
1585 \fBGnuTLS\fR
1586 configuration file which does not provide fine granularity\&.
1587 .RE
1588 .sp
1589 .RS 4
1590 .ie n \{\
1591 \h'-04'\(bu\h'+03'\c
1592 .\}
1593 .el \{\
1594 .sp -1
1595 .IP \(bu 2.3
1596 .\}
1597 \fBGnuTLS\fR: PSK key exchanges have to be explicitly enabled by the applications using them\&.
1598 .RE
1599 .sp
1600 .RS 4
1601 .ie n \{\
1602 \h'-04'\(bu\h'+03'\c
1603 .\}
1604 .el \{\
1605 .sp -1
1606 .IP \(bu 2.3
1607 .\}
1608 \fBGnuTLS\fR: HMAC\-SHA2\-256 and HMAC\-SHA2\-384 MACs are disabled due to concerns over the constant\-timedness of the implementation\&.
1609 .RE
1610 .sp
1611 .RS 4
1612 .ie n \{\
1613 \h'-04'\(bu\h'+03'\c
1614 .\}
1615 .el \{\
1616 .sp -1
1617 .IP \(bu 2.3
1618 .\}
1619 \fBOpenSSH\fR:
1620 \fBDH\fR
1621 group 1 is always disabled on server even if the policy allows 1024 bit
1622 \fBDH\fR
1623 groups in general\&. The OpenSSH configuration option HostKeyAlgorithms is set only for the
1624 \fBSSH\fR
1625 server as otherwise the handling of the existing known hosts entries would be broken on client\&.
1626 .RE
1627 .sp
1628 .RS 4
1629 .ie n \{\
1630 \h'-04'\(bu\h'+03'\c
1631 .\}
1632 .el \{\
1633 .sp -1
1634 .IP \(bu 2.3
1635 .\}
1636 \fBLibreswan\fR: The
1637 \fBkey_exchange\fR
1638 parameter does not affect the generated configuration\&. The use of regular
1639 \fBDH\fR
1640 or
1641 \fBECDH\fR
1642 can be limited with appropriate setting of the
1643 \fBgroup\fR
1644 parameter\&.
1645 .RE
1646 .sp
1647 .RS 4
1648 .ie n \{\
1649 \h'-04'\(bu\h'+03'\c
1650 .\}
1651 .el \{\
1652 .sp -1
1653 .IP \(bu 2.3
1654 .\}
1655 \fBSequoia\fR: only
1656 \fBhash_algorithms\fR,
1657 \fBsymmetric_algorithms\fR
1658 and
1659 \fBasymmetric_algorithms\fR
1660 are controlled by crypto\-policies\&.
1661 \fBasymmetric_algorithms\fR
1662 is not controlled directly, but deduced from
1663 \fBsign\fR
1664 and
1665 \fBgroup\fR\&.
1666 .RE
1667 .sp
1668 .RS 4
1669 .ie n \{\
1670 \h'-04'\(bu\h'+03'\c
1671 .\}
1672 .el \{\
1673 .sp -1
1674 .IP \(bu 2.3
1675 .\}
1676 \fBNSS\fR: order of
1677 \fBgroup\fR
1678 values is ignored and built\-in order is used instead\&.
1679 .RE
1680 .sp
1681 .RS 4
1682 .ie n \{\
1683 \h'-04'\(bu\h'+03'\c
1684 .\}
1685 .el \{\
1686 .sp -1
1687 .IP \(bu 2.3
1688 .\}
1689 \fBNSS\fR: currently is the only one respecting the
1690 \fBpkcs12\fR
1691 /
1692 \fBpkcs12\-import\fR
1693 scopes\&.
1694 \fBpkcs12\fR
1695 implies
1696 \fBpkcs12\-import\fR, it\(cqs not possible to allow exporting without allowing importing\&. The same applies to
1697 \fBsmime\fR
1698 /
1699 \fBsmime\-import\fR
1700 scopes, and their
1701 \fBnss\-\fR
1702 prefixed internal\-use variants\&. These scopes cannot be used for enabling signature algorithms that weren\(cqt otherwise enabled\&.
1703 .RE
1704 .SH "HISTORY"
1705 .sp
1706 The \fBECDHE\-GSS\fR and \fBDHE\-GSS\fR algorithms are newly introduced and must be specified in the base policy for the SSH GSSAPI key exchange methods to be enabled\&. Previously the legacy SSH GSSAPI key exchange methods were automatically enabled when the \fBSHA1\fR hash and \fBDH\fR parameters of at least 2048 bits were enabled\&.
1707 .sp
1708 Before the introduction of the \fBcustom crypto policies\fR support it was possible to have an completely arbitrary crypto policy created as a set of arbitrary back\-end config files in /usr/share/crypto\-policies/<POLICYNAME> directory\&. With the introduction of the \fBcustom crypto policies\fR it is still possible but there must be an empty (possibly with any comment lines) <POLICYNAME>\&.pol file in /usr/share/crypto\-policies/policies so the update\-crypto\-policies command can recognize the arbitrary custom policy\&. No subpolicies must be used with such an arbitrary custom policy\&. Modifications from \fBlocal\&.d\fR will be appended to the files provided by the policy\&.
1709 .sp
1710 The use of the following historaically available options is discouraged:
1711 .sp
1712 .RS 4
1713 .ie n \{\
1714 \h'-04'\(bu\h'+03'\c
1715 .\}
1716 .el \{\
1717 .sp -1
1718 .IP \(bu 2.3
1719 .\}
1720 \fBmin_tls_version\fR: Lowest allowed TLS protocol version (recommended replacement:
1721 \fBprotocol@TLS\fR)
1722 .RE
1723 .sp
1724 .RS 4
1725 .ie n \{\
1726 \h'-04'\(bu\h'+03'\c
1727 .\}
1728 .el \{\
1729 .sp -1
1730 .IP \(bu 2.3
1731 .\}
1732 \fBmin_dtls_version\fR: Lowest allowed DTLS protocol version (recommended replacement:
1733 \fBprotocol@TLS\fR)
1734 .RE
1735 .sp
1736 The following options are deprecated, please rewrite your policies:
1737 .sp
1738 .RS 4
1739 .ie n \{\
1740 \h'-04'\(bu\h'+03'\c
1741 .\}
1742 .el \{\
1743 .sp -1
1744 .IP \(bu 2.3
1745 .\}
1746 \fBike_protocol\fR: List of allowed IKE protocol versions (recommended replacement:
1747 \fBprotocol@IKE\fR, mind the relative position to other
1748 \fBprotocol\fR
1749 directives)\&.
1750 .RE
1751 .sp
1752 .RS 4
1753 .ie n \{\
1754 \h'-04'\(bu\h'+03'\c
1755 .\}
1756 .el \{\
1757 .sp -1
1758 .IP \(bu 2.3
1759 .\}
1760 \fBtls_cipher\fR: list of allowed symmetric encryption algorithms for use with the TLS protocol (recommended replacement:
1761 \fBcipher@TLS\fR, mind the relative position to other
1762 \fBcipher\fR
1763 directives)\&.
1764 .RE
1765 .sp
1766 .RS 4
1767 .ie n \{\
1768 \h'-04'\(bu\h'+03'\c
1769 .\}
1770 .el \{\
1771 .sp -1
1772 .IP \(bu 2.3
1773 .\}
1774 \fBssh_cipher\fR: list of allowed symmetric encryption algorithms for use with the SSH protocol (recommended replacement:
1775 \fBcipher@SSH\fR, mind the relative position to other
1776 \fBcipher\fR
1777 directives)\&.
1778 .RE
1779 .sp
1780 .RS 4
1781 .ie n \{\
1782 \h'-04'\(bu\h'+03'\c
1783 .\}
1784 .el \{\
1785 .sp -1
1786 .IP \(bu 2.3
1787 .\}
1788 \fBssh_group\fR: list of allowed groups or elliptic curves for key exchanges for use with the SSH protocol (recommended replacement:
1789 \fBgroup@SSH\fR, mind the relative position to other
1790 \fBgroup\fR
1791 directives)\&.
1792 .RE
1793 .sp
1794 .RS 4
1795 .ie n \{\
1796 \h'-04'\(bu\h'+03'\c
1797 .\}
1798 .el \{\
1799 .sp -1
1800 .IP \(bu 2.3
1801 .\}
1802 \fBsha1_in_dnssec\fR: Allow
1803 \fBSHA1\fR
1804 usage in DNSSec protocol even if it is not present in the
1805 \fBhash\fR
1806 and
1807 \fBsign\fR
1808 lists (recommended replacements:
1809 \fBhash@DNSSec\fR,
1810 \fBsign@DNSSec\fR)\&.
1811 .RE
1812 .sp
1813 .RS 4
1814 .ie n \{\
1815 \h'-04'\(bu\h'+03'\c
1816 .\}
1817 .el \{\
1818 .sp -1
1819 .IP \(bu 2.3
1820 .\}
1821 \fBssh_etm\fR: Value of 1 if
1822 \fBOpenSSH\fR
1823 EtM (encrypt\-then\-mac) extension is allowed, 0 otherwise\&. Use
1824 \fBetm@SSH\fR
1825 instead\&.
1826 .RE
1827 .SH "FILES"
1828 .PP
1829 /etc/crypto\-policies/back\-ends
1830 .RS 4
1831 The individual cryptographical back\-end configuration files\&. Usually linked to the configuration shipped in the crypto\-policies package unless a configuration from
1832 local\&.d
1833 is added\&.
1834 .RE
1835 .PP
1836 /etc/crypto\-policies/config
1837 .RS 4
1838 A file containing the name of the active crypto\-policy set on the system\&.
1839 .RE
1840 .PP
1841 /etc/crypto\-policies/local\&.d
1842 .RS 4
1843 Additional configuration shipped by other packages or created by the system administrator\&. The contents of the
1844 <back\-end>\-file\&.config
1845 is appended to the configuration from the policy back end as shipped in the crypto\-policies package\&.
1846 .RE
1847 .PP
1848 /usr/share/crypto\-policies/policies
1849 .RS 4
1850 System policy definition files\&.
1851 .RE
1852 .PP
1853 /usr/share/crypto\-policies/policies/modules
1854 .RS 4
1855 System subpolicy definition files\&.
1856 .RE
1857 .PP
1858 /etc/crypto\-policies/policies
1859 .RS 4
1860 Custom policy definition files as configured by the system administrator\&.
1861 .RE
1862 .PP
1863 /etc/crypto\-policies/policies/modules
1864 .RS 4
1865 Custom subpolicy definition files as configured by the system administrator\&.
1866 .RE
1867 .PP
1868 /usr/share/crypto\-policies/<\*(AqPOLICYNAME\*(Aq>
1869 .RS 4
1870 Pre\-generated back\-end configurations for policy
1871 \fIPOLICYNAME\fR\&.
1872 .RE
1873 .SH "SEE ALSO"
1874 .sp
1875 update\-crypto\-policies(8)
1876 .SH "AUTHOR"
1877 .sp
1878 Written by Tomáš Mráz\&.