xref: /freebsd/crypto/openssl/doc/man1/openssl-ciphers.pod.in (revision e7be843b4a162e68651d3911f0357ed464915629)
1=pod
2{- OpenSSL::safe::output_do_not_edit_headers(); -}
3
4=head1 NAME
5
6openssl-ciphers - SSL cipher display and cipher list command
7
8=head1 SYNOPSIS
9
10B<openssl> B<ciphers>
11[B<-help>]
12[B<-s>]
13[B<-v>]
14[B<-V>]
15[B<-ssl3>]
16[B<-tls1>]
17[B<-tls1_1>]
18[B<-tls1_2>]
19[B<-tls1_3>]
20[B<-psk>]
21[B<-srp>]
22[B<-stdname>]
23[B<-convert> I<name>]
24[B<-ciphersuites> I<val>]
25{- $OpenSSL::safe::opt_provider_synopsis -}
26[I<cipherlist>]
27
28=head1 DESCRIPTION
29
30This command converts textual OpenSSL cipher lists into
31ordered SSL cipher preference lists. It can be used to
32determine the appropriate cipherlist.
33
34=head1 OPTIONS
35
36=over 4
37
38=item B<-help>
39
40Print a usage message.
41
42{- $OpenSSL::safe::opt_provider_item -}
43
44=item B<-s>
45
46Only list supported ciphers: those consistent with the security level, and
47minimum and maximum protocol version.  This is closer to the actual cipher list
48an application will support.
49
50PSK and SRP ciphers are not enabled by default: they require B<-psk> or B<-srp>
51to enable them.
52
53It also does not change the default list of supported signature algorithms.
54
55On a server the list of supported ciphers might also exclude other ciphers
56depending on the configured certificates and presence of DH parameters.
57
58If this option is not used then all ciphers that match the cipherlist will be
59listed.
60
61=item B<-psk>
62
63When combined with B<-s> includes cipher suites which require PSK.
64
65=item B<-srp>
66
67When combined with B<-s> includes cipher suites which require SRP. This option
68is deprecated.
69
70=item B<-v>
71
72Verbose output: For each cipher suite, list details as provided by
73L<SSL_CIPHER_description(3)>.
74
75=item B<-V>
76
77Like B<-v>, but include the official cipher suite values in hex.
78
79=item B<-tls1_3>, B<-tls1_2>, B<-tls1_1>, B<-tls1>, B<-ssl3>
80
81In combination with the B<-s> option, list the ciphers which could be used if
82the specified protocol were negotiated.
83Note that not all protocols and flags may be available, depending on how
84OpenSSL was built.
85
86=item B<-stdname>
87
88Precede each cipher suite by its standard name.
89
90=item B<-convert> I<name>
91
92Convert a standard cipher I<name> to its OpenSSL name.
93
94=item B<-ciphersuites> I<val>
95
96Sets the list of TLSv1.3 ciphersuites. This list will be combined with any
97TLSv1.2 and below ciphersuites that have been configured. The format for this
98list is a simple colon (":") separated list of TLSv1.3 ciphersuite names. By
99default this value is:
100
101 TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256:TLS_AES_128_GCM_SHA256
102
103=item B<cipherlist>
104
105A cipher list of TLSv1.2 and below ciphersuites to convert to a cipher
106preference list. This list will be combined with any TLSv1.3 ciphersuites that
107have been configured. If it is not included then the default cipher list will be
108used. The format is described below.
109
110=back
111
112=head1 CIPHER LIST FORMAT
113
114The cipher list consists of one or more I<cipher strings> separated by colons.
115Commas or spaces are also acceptable separators but colons are normally used.
116
117The cipher string may reference a cipher using its standard name from
118the IANA TLS Cipher Suites Registry
119(L<https://www.iana.org/assignments/tls-parameters/tls-parameters.xhtml#tls-parameters-4>).
120
121The actual cipher string can take several different forms.
122
123It can consist of a single cipher suite such as B<RC4-SHA>.
124
125It can represent a list of cipher suites containing a certain algorithm, or
126cipher suites of a certain type. For example B<SHA1> represents all ciphers
127suites using the digest algorithm SHA1 and B<SSLv3> represents all SSL v3
128algorithms.
129
130Lists of cipher suites can be combined in a single cipher string using the
131B<+> character. This is used as a logical B<and> operation. For example
132B<SHA1+DES> represents all cipher suites containing the SHA1 B<and> the DES
133algorithms.
134
135Each cipher string can be optionally preceded by the characters B<!>,
136B<-> or B<+>.
137
138If B<!> is used then the ciphers are permanently deleted from the list.
139The ciphers deleted can never reappear in the list even if they are
140explicitly stated.
141
142If B<-> is used then the ciphers are deleted from the list, but some or
143all of the ciphers can be added again by later options.
144
145If B<+> is used then the ciphers are moved to the end of the list. This
146option doesn't add any new ciphers it just moves matching existing ones.
147
148If none of these characters is present then the string is just interpreted
149as a list of ciphers to be appended to the current preference list. If the
150list includes any ciphers already present they will be ignored: that is they
151will not moved to the end of the list.
152
153The cipher string B<@STRENGTH> can be used at any point to sort the current
154cipher list in order of encryption algorithm key length.
155
156The cipher string B<@SECLEVEL>=I<n> can be used at any point to set the security
157level to I<n>, which should be a number between zero and five, inclusive.
158See L<SSL_CTX_set_security_level(3)> for a description of what each level means.
159
160The cipher list can be prefixed with the B<DEFAULT> keyword, which enables
161the default cipher list as defined below.  Unlike cipher strings,
162this prefix may not be combined with other strings using B<+> character.
163For example, B<DEFAULT+DES> is not valid.
164
165The content of the default list is determined at compile time and normally
166corresponds to B<ALL:!COMPLEMENTOFDEFAULT:!eNULL>.
167
168=head1 CIPHER STRINGS
169
170The following is a list of all permitted cipher strings and their meanings.
171
172=over 4
173
174=item B<COMPLEMENTOFDEFAULT>
175
176The ciphers included in B<ALL>, but not enabled by default. Currently
177this includes all RC4 and anonymous ciphers. Note that this rule does
178not cover B<eNULL>, which is not included by B<ALL> (use B<COMPLEMENTOFALL> if
179necessary). Note that RC4 based cipher suites are not built into OpenSSL by
180default (see the enable-weak-ssl-ciphers option to Configure).
181
182=item B<ALL>
183
184All cipher suites except the B<eNULL> ciphers (which must be explicitly enabled
185if needed).
186As of OpenSSL 1.0.0, the B<ALL> cipher suites are sensibly ordered by default.
187
188=item B<COMPLEMENTOFALL>
189
190The cipher suites not enabled by B<ALL>, currently B<eNULL>.
191
192=item B<HIGH>
193
194"High" encryption cipher suites. This currently means those with key lengths
195larger than 128 bits, and some cipher suites with 128-bit keys.
196
197=item B<MEDIUM>
198
199"Medium" encryption cipher suites, currently some of those using 128 bit
200encryption.
201
202=item B<LOW>
203
204"Low" encryption cipher suites, currently those using 64 or 56 bit
205encryption algorithms but excluding export cipher suites.  All these
206cipher suites have been removed as of OpenSSL 1.1.0.
207
208=item B<eNULL>, B<NULL>
209
210The "NULL" ciphers that is those offering no encryption. Because these offer no
211encryption at all and are a security risk they are not enabled via either the
212B<DEFAULT> or B<ALL> cipher strings.
213Be careful when building cipherlists out of lower-level primitives such as
214B<kRSA> or B<aECDSA> as these do overlap with the B<eNULL> ciphers.  When in
215doubt, include B<!eNULL> in your cipherlist.
216
217=item B<aNULL>
218
219The cipher suites offering no authentication. This is currently the anonymous
220DH algorithms and anonymous ECDH algorithms. These cipher suites are vulnerable
221to "man in the middle" attacks and so their use is discouraged.
222These are excluded from the B<DEFAULT> ciphers, but included in the B<ALL>
223ciphers.
224Be careful when building cipherlists out of lower-level primitives such as
225B<kDHE> or B<AES> as these do overlap with the B<aNULL> ciphers.
226When in doubt, include B<!aNULL> in your cipherlist.
227
228=item B<kRSA>, B<aRSA>, B<RSA>
229
230Cipher suites using RSA key exchange or authentication. B<RSA> is an alias for
231B<kRSA>.
232
233=item B<kDHr>, B<kDHd>, B<kDH>
234
235Cipher suites using static DH key agreement and DH certificates signed by CAs
236with RSA and DSS keys or either respectively.
237All these cipher suites have been removed in OpenSSL 1.1.0.
238
239=item B<kDHE>, B<kEDH>, B<DH>
240
241Cipher suites using ephemeral DH key agreement, including anonymous cipher
242suites.
243
244=item B<DHE>, B<EDH>
245
246Cipher suites using authenticated ephemeral DH key agreement.
247
248=item B<ADH>
249
250Anonymous DH cipher suites, note that this does not include anonymous Elliptic
251Curve DH (ECDH) cipher suites.
252
253=item B<kEECDH>, B<kECDHE>, B<ECDH>
254
255Cipher suites using ephemeral ECDH key agreement, including anonymous
256cipher suites.
257
258=item B<ECDHE>, B<EECDH>
259
260Cipher suites using authenticated ephemeral ECDH key agreement.
261
262=item B<AECDH>
263
264Anonymous Elliptic Curve Diffie-Hellman cipher suites.
265
266=item B<aDSS>, B<DSS>
267
268Cipher suites using DSS authentication, i.e. the certificates carry DSS keys.
269
270=item B<aDH>
271
272Cipher suites effectively using DH authentication, i.e. the certificates carry
273DH keys.
274All these cipher suites have been removed in OpenSSL 1.1.0.
275
276=item B<aECDSA>, B<ECDSA>
277
278Cipher suites using ECDSA authentication, i.e. the certificates carry ECDSA
279keys.
280
281=item B<TLSv1.2>, B<TLSv1.0>, B<SSLv3>
282
283Lists cipher suites which are only supported in at least TLS v1.2, TLS v1.0 or
284SSL v3.0 respectively.
285Note: there are no cipher suites specific to TLS v1.1.
286Since this is only the minimum version, if, for example, TLSv1.0 is negotiated
287then both TLSv1.0 and SSLv3.0 cipher suites are available.
288
289Note: these cipher strings B<do not> change the negotiated version of SSL or
290TLS, they only affect the list of available cipher suites.
291
292=item B<AES128>, B<AES256>, B<AES>
293
294cipher suites using 128 bit AES, 256 bit AES or either 128 or 256 bit AES.
295
296=item B<AESGCM>
297
298AES in Galois Counter Mode (GCM): these cipher suites are only supported
299in TLS v1.2.
300
301=item B<AESCCM>, B<AESCCM8>
302
303AES in Cipher Block Chaining - Message Authentication Mode (CCM): these
304cipher suites are only supported in TLS v1.2. B<AESCCM> references CCM
305cipher suites using both 16 and 8 octet Integrity Check Value (ICV)
306while B<AESCCM8> only references 8 octet ICV.
307
308=item B<ARIA128>, B<ARIA256>, B<ARIA>
309
310Cipher suites using 128 bit ARIA, 256 bit ARIA or either 128 or 256 bit
311ARIA.
312
313=item B<CAMELLIA128>, B<CAMELLIA256>, B<CAMELLIA>
314
315Cipher suites using 128 bit CAMELLIA, 256 bit CAMELLIA or either 128 or 256 bit
316CAMELLIA.
317
318=item B<CHACHA20>
319
320Cipher suites using ChaCha20.
321
322=item B<3DES>
323
324Cipher suites using triple DES.
325
326=item B<DES>
327
328Cipher suites using DES (not triple DES).
329All these cipher suites have been removed in OpenSSL 1.1.0.
330
331=item B<RC4>
332
333Cipher suites using RC4.
334
335=item B<RC2>
336
337Cipher suites using RC2.
338
339=item B<IDEA>
340
341Cipher suites using IDEA.
342
343=item B<SEED>
344
345Cipher suites using SEED.
346
347=item B<MD5>
348
349Cipher suites using MD5.
350
351=item B<SHA1>, B<SHA>
352
353Cipher suites using SHA1.
354
355=item B<SHA256>, B<SHA384>
356
357Cipher suites using SHA256 or SHA384.
358
359=item B<aGOST>
360
361Cipher suites using GOST R 34.10 (either 2001 or 94) for authentication
362(needs an engine supporting GOST algorithms).
363
364=item B<aGOST01>
365
366Cipher suites using GOST R 34.10-2001 authentication.
367
368=item B<kGOST>
369
370Cipher suites, using VKO 34.10 key exchange, specified in the RFC 4357.
371
372=item B<GOST94>
373
374Cipher suites, using HMAC based on GOST R 34.11-94.
375
376=item B<GOST89MAC>
377
378Cipher suites using GOST 28147-89 MAC B<instead of> HMAC.
379
380=item B<PSK>
381
382All cipher suites using pre-shared keys (PSK).
383
384=item B<kPSK>, B<kECDHEPSK>, B<kDHEPSK>, B<kRSAPSK>
385
386Cipher suites using PSK key exchange, ECDHE_PSK, DHE_PSK or RSA_PSK.
387
388=item B<aPSK>
389
390Cipher suites using PSK authentication (currently all PSK modes apart from
391RSA_PSK).
392
393=item B<SUITEB128>, B<SUITEB128ONLY>, B<SUITEB192>
394
395Enables suite B mode of operation using 128 (permitting 192 bit mode by peer)
396128 bit (not permitting 192 bit by peer) or 192 bit level of security
397respectively.
398If used these cipherstrings should appear first in the cipher
399list and anything after them is ignored.
400Setting Suite B mode has additional consequences required to comply with
401RFC6460.
402In particular the supported signature algorithms is reduced to support only
403ECDSA and SHA256 or SHA384, only the elliptic curves P-256 and P-384 can be
404used and only the two suite B compliant cipher suites
405(ECDHE-ECDSA-AES128-GCM-SHA256 and ECDHE-ECDSA-AES256-GCM-SHA384) are
406permissible.
407
408=item B<CBC>
409
410All cipher suites using encryption algorithm in Cipher Block Chaining (CBC)
411mode. These cipher suites are only supported in TLS v1.2 and earlier. Currently
412it's an alias for the following cipherstrings: B<SSL_DES>, B<SSL_3DES>, B<SSL_RC2>,
413B<SSL_IDEA>, B<SSL_AES128>, B<SSL_AES256>, B<SSL_CAMELLIA128>, B<SSL_CAMELLIA256>, B<SSL_SEED>.
414
415=back
416
417=head1 CIPHER SUITE NAMES
418
419The following lists give the standard SSL or TLS cipher suites names from the
420relevant specification and their OpenSSL equivalents. You can use either
421standard names or OpenSSL names in cipher lists, or a mix of both.
422
423It should be noted, that several cipher suite names do not include the
424authentication used, e.g. DES-CBC3-SHA. In these cases, RSA authentication
425is used.
426
427=head2 SSL v3.0 cipher suites
428
429 SSL_RSA_WITH_NULL_MD5                   NULL-MD5
430 SSL_RSA_WITH_NULL_SHA                   NULL-SHA
431 SSL_RSA_WITH_RC4_128_MD5                RC4-MD5
432 SSL_RSA_WITH_RC4_128_SHA                RC4-SHA
433 SSL_RSA_WITH_IDEA_CBC_SHA               IDEA-CBC-SHA
434 SSL_RSA_WITH_3DES_EDE_CBC_SHA           DES-CBC3-SHA
435
436 SSL_DH_DSS_WITH_3DES_EDE_CBC_SHA        DH-DSS-DES-CBC3-SHA
437 SSL_DH_RSA_WITH_3DES_EDE_CBC_SHA        DH-RSA-DES-CBC3-SHA
438 SSL_DHE_DSS_WITH_3DES_EDE_CBC_SHA       DHE-DSS-DES-CBC3-SHA
439 SSL_DHE_RSA_WITH_3DES_EDE_CBC_SHA       DHE-RSA-DES-CBC3-SHA
440
441 SSL_DH_anon_WITH_RC4_128_MD5            ADH-RC4-MD5
442 SSL_DH_anon_WITH_3DES_EDE_CBC_SHA       ADH-DES-CBC3-SHA
443
444 SSL_FORTEZZA_KEA_WITH_NULL_SHA          Not implemented.
445 SSL_FORTEZZA_KEA_WITH_FORTEZZA_CBC_SHA  Not implemented.
446 SSL_FORTEZZA_KEA_WITH_RC4_128_SHA       Not implemented.
447
448=head2 TLS v1.0 cipher suites
449
450 TLS_RSA_WITH_NULL_MD5                   NULL-MD5
451 TLS_RSA_WITH_NULL_SHA                   NULL-SHA
452 TLS_RSA_WITH_RC4_128_MD5                RC4-MD5
453 TLS_RSA_WITH_RC4_128_SHA                RC4-SHA
454 TLS_RSA_WITH_IDEA_CBC_SHA               IDEA-CBC-SHA
455 TLS_RSA_WITH_3DES_EDE_CBC_SHA           DES-CBC3-SHA
456
457 TLS_DH_DSS_WITH_3DES_EDE_CBC_SHA        Not implemented.
458 TLS_DH_RSA_WITH_3DES_EDE_CBC_SHA        Not implemented.
459 TLS_DHE_DSS_WITH_3DES_EDE_CBC_SHA       DHE-DSS-DES-CBC3-SHA
460 TLS_DHE_RSA_WITH_3DES_EDE_CBC_SHA       DHE-RSA-DES-CBC3-SHA
461
462 TLS_DH_anon_WITH_RC4_128_MD5            ADH-RC4-MD5
463 TLS_DH_anon_WITH_3DES_EDE_CBC_SHA       ADH-DES-CBC3-SHA
464
465=head2 AES cipher suites from RFC3268, extending TLS v1.0
466
467 TLS_RSA_WITH_AES_128_CBC_SHA            AES128-SHA
468 TLS_RSA_WITH_AES_256_CBC_SHA            AES256-SHA
469
470 TLS_DH_DSS_WITH_AES_128_CBC_SHA         DH-DSS-AES128-SHA
471 TLS_DH_DSS_WITH_AES_256_CBC_SHA         DH-DSS-AES256-SHA
472 TLS_DH_RSA_WITH_AES_128_CBC_SHA         DH-RSA-AES128-SHA
473 TLS_DH_RSA_WITH_AES_256_CBC_SHA         DH-RSA-AES256-SHA
474
475 TLS_DHE_DSS_WITH_AES_128_CBC_SHA        DHE-DSS-AES128-SHA
476 TLS_DHE_DSS_WITH_AES_256_CBC_SHA        DHE-DSS-AES256-SHA
477 TLS_DHE_RSA_WITH_AES_128_CBC_SHA        DHE-RSA-AES128-SHA
478 TLS_DHE_RSA_WITH_AES_256_CBC_SHA        DHE-RSA-AES256-SHA
479
480 TLS_DH_anon_WITH_AES_128_CBC_SHA        ADH-AES128-SHA
481 TLS_DH_anon_WITH_AES_256_CBC_SHA        ADH-AES256-SHA
482
483=head2 Camellia cipher suites from RFC4132, extending TLS v1.0
484
485 TLS_RSA_WITH_CAMELLIA_128_CBC_SHA      CAMELLIA128-SHA
486 TLS_RSA_WITH_CAMELLIA_256_CBC_SHA      CAMELLIA256-SHA
487
488 TLS_DH_DSS_WITH_CAMELLIA_128_CBC_SHA   DH-DSS-CAMELLIA128-SHA
489 TLS_DH_DSS_WITH_CAMELLIA_256_CBC_SHA   DH-DSS-CAMELLIA256-SHA
490 TLS_DH_RSA_WITH_CAMELLIA_128_CBC_SHA   DH-RSA-CAMELLIA128-SHA
491 TLS_DH_RSA_WITH_CAMELLIA_256_CBC_SHA   DH-RSA-CAMELLIA256-SHA
492
493 TLS_DHE_DSS_WITH_CAMELLIA_128_CBC_SHA  DHE-DSS-CAMELLIA128-SHA
494 TLS_DHE_DSS_WITH_CAMELLIA_256_CBC_SHA  DHE-DSS-CAMELLIA256-SHA
495 TLS_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA  DHE-RSA-CAMELLIA128-SHA
496 TLS_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA  DHE-RSA-CAMELLIA256-SHA
497
498 TLS_DH_anon_WITH_CAMELLIA_128_CBC_SHA  ADH-CAMELLIA128-SHA
499 TLS_DH_anon_WITH_CAMELLIA_256_CBC_SHA  ADH-CAMELLIA256-SHA
500
501=head2 SEED cipher suites from RFC4162, extending TLS v1.0
502
503 TLS_RSA_WITH_SEED_CBC_SHA              SEED-SHA
504
505 TLS_DH_DSS_WITH_SEED_CBC_SHA           DH-DSS-SEED-SHA
506 TLS_DH_RSA_WITH_SEED_CBC_SHA           DH-RSA-SEED-SHA
507
508 TLS_DHE_DSS_WITH_SEED_CBC_SHA          DHE-DSS-SEED-SHA
509 TLS_DHE_RSA_WITH_SEED_CBC_SHA          DHE-RSA-SEED-SHA
510
511 TLS_DH_anon_WITH_SEED_CBC_SHA          ADH-SEED-SHA
512
513=head2 GOST cipher suites from draft-chudov-cryptopro-cptls, extending TLS v1.0
514
515Note: these ciphers require an engine which including GOST cryptographic
516algorithms, such as the B<gost> engine, which isn't part of the OpenSSL
517distribution.
518
519 TLS_GOSTR341094_WITH_28147_CNT_IMIT GOST94-GOST89-GOST89
520 TLS_GOSTR341001_WITH_28147_CNT_IMIT GOST2001-GOST89-GOST89
521 TLS_GOSTR341094_WITH_NULL_GOSTR3411 GOST94-NULL-GOST94
522 TLS_GOSTR341001_WITH_NULL_GOSTR3411 GOST2001-NULL-GOST94
523
524=head2 GOST cipher suites, extending TLS v1.2
525
526Note: these ciphers require an engine which including GOST cryptographic
527algorithms, such as the B<gost> engine, which isn't part of the OpenSSL
528distribution.
529
530 TLS_GOSTR341112_256_WITH_28147_CNT_IMIT GOST2012-GOST8912-GOST8912
531 TLS_GOSTR341112_256_WITH_NULL_GOSTR3411 GOST2012-NULL-GOST12
532
533Note: GOST2012-GOST8912-GOST8912 is an alias for two ciphers ID
534old LEGACY-GOST2012-GOST8912-GOST8912 and new IANA-GOST2012-GOST8912-GOST8912
535
536
537=head2 Additional Export 1024 and other cipher suites
538
539Note: these ciphers can also be used in SSL v3.
540
541 TLS_DHE_DSS_WITH_RC4_128_SHA            DHE-DSS-RC4-SHA
542
543=head2 Elliptic curve cipher suites
544
545 TLS_ECDHE_RSA_WITH_NULL_SHA             ECDHE-RSA-NULL-SHA
546 TLS_ECDHE_RSA_WITH_RC4_128_SHA          ECDHE-RSA-RC4-SHA
547 TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA     ECDHE-RSA-DES-CBC3-SHA
548 TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA      ECDHE-RSA-AES128-SHA
549 TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA      ECDHE-RSA-AES256-SHA
550
551 TLS_ECDHE_ECDSA_WITH_NULL_SHA           ECDHE-ECDSA-NULL-SHA
552 TLS_ECDHE_ECDSA_WITH_RC4_128_SHA        ECDHE-ECDSA-RC4-SHA
553 TLS_ECDHE_ECDSA_WITH_3DES_EDE_CBC_SHA   ECDHE-ECDSA-DES-CBC3-SHA
554 TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA    ECDHE-ECDSA-AES128-SHA
555 TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA    ECDHE-ECDSA-AES256-SHA
556
557 TLS_ECDH_anon_WITH_NULL_SHA             AECDH-NULL-SHA
558 TLS_ECDH_anon_WITH_RC4_128_SHA          AECDH-RC4-SHA
559 TLS_ECDH_anon_WITH_3DES_EDE_CBC_SHA     AECDH-DES-CBC3-SHA
560 TLS_ECDH_anon_WITH_AES_128_CBC_SHA      AECDH-AES128-SHA
561 TLS_ECDH_anon_WITH_AES_256_CBC_SHA      AECDH-AES256-SHA
562
563=head2 TLS v1.2 cipher suites
564
565 TLS_RSA_WITH_NULL_SHA256                  NULL-SHA256
566
567 TLS_RSA_WITH_AES_128_CBC_SHA256           AES128-SHA256
568 TLS_RSA_WITH_AES_256_CBC_SHA256           AES256-SHA256
569 TLS_RSA_WITH_AES_128_GCM_SHA256           AES128-GCM-SHA256
570 TLS_RSA_WITH_AES_256_GCM_SHA384           AES256-GCM-SHA384
571
572 TLS_DH_RSA_WITH_AES_128_CBC_SHA256        DH-RSA-AES128-SHA256
573 TLS_DH_RSA_WITH_AES_256_CBC_SHA256        DH-RSA-AES256-SHA256
574 TLS_DH_RSA_WITH_AES_128_GCM_SHA256        DH-RSA-AES128-GCM-SHA256
575 TLS_DH_RSA_WITH_AES_256_GCM_SHA384        DH-RSA-AES256-GCM-SHA384
576
577 TLS_DH_DSS_WITH_AES_128_CBC_SHA256        DH-DSS-AES128-SHA256
578 TLS_DH_DSS_WITH_AES_256_CBC_SHA256        DH-DSS-AES256-SHA256
579 TLS_DH_DSS_WITH_AES_128_GCM_SHA256        DH-DSS-AES128-GCM-SHA256
580 TLS_DH_DSS_WITH_AES_256_GCM_SHA384        DH-DSS-AES256-GCM-SHA384
581
582 TLS_DHE_RSA_WITH_AES_128_CBC_SHA256       DHE-RSA-AES128-SHA256
583 TLS_DHE_RSA_WITH_AES_256_CBC_SHA256       DHE-RSA-AES256-SHA256
584 TLS_DHE_RSA_WITH_AES_128_GCM_SHA256       DHE-RSA-AES128-GCM-SHA256
585 TLS_DHE_RSA_WITH_AES_256_GCM_SHA384       DHE-RSA-AES256-GCM-SHA384
586
587 TLS_DHE_DSS_WITH_AES_128_CBC_SHA256       DHE-DSS-AES128-SHA256
588 TLS_DHE_DSS_WITH_AES_256_CBC_SHA256       DHE-DSS-AES256-SHA256
589 TLS_DHE_DSS_WITH_AES_128_GCM_SHA256       DHE-DSS-AES128-GCM-SHA256
590 TLS_DHE_DSS_WITH_AES_256_GCM_SHA384       DHE-DSS-AES256-GCM-SHA384
591
592 TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256     ECDHE-RSA-AES128-SHA256
593 TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384     ECDHE-RSA-AES256-SHA384
594 TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256     ECDHE-RSA-AES128-GCM-SHA256
595 TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384     ECDHE-RSA-AES256-GCM-SHA384
596
597 TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256   ECDHE-ECDSA-AES128-SHA256
598 TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384   ECDHE-ECDSA-AES256-SHA384
599 TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256   ECDHE-ECDSA-AES128-GCM-SHA256
600 TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384   ECDHE-ECDSA-AES256-GCM-SHA384
601
602 TLS_DH_anon_WITH_AES_128_CBC_SHA256       ADH-AES128-SHA256
603 TLS_DH_anon_WITH_AES_256_CBC_SHA256       ADH-AES256-SHA256
604 TLS_DH_anon_WITH_AES_128_GCM_SHA256       ADH-AES128-GCM-SHA256
605 TLS_DH_anon_WITH_AES_256_GCM_SHA384       ADH-AES256-GCM-SHA384
606
607 RSA_WITH_AES_128_CCM                      AES128-CCM
608 RSA_WITH_AES_256_CCM                      AES256-CCM
609 DHE_RSA_WITH_AES_128_CCM                  DHE-RSA-AES128-CCM
610 DHE_RSA_WITH_AES_256_CCM                  DHE-RSA-AES256-CCM
611 RSA_WITH_AES_128_CCM_8                    AES128-CCM8
612 RSA_WITH_AES_256_CCM_8                    AES256-CCM8
613 DHE_RSA_WITH_AES_128_CCM_8                DHE-RSA-AES128-CCM8
614 DHE_RSA_WITH_AES_256_CCM_8                DHE-RSA-AES256-CCM8
615 ECDHE_ECDSA_WITH_AES_128_CCM              ECDHE-ECDSA-AES128-CCM
616 ECDHE_ECDSA_WITH_AES_256_CCM              ECDHE-ECDSA-AES256-CCM
617 ECDHE_ECDSA_WITH_AES_128_CCM_8            ECDHE-ECDSA-AES128-CCM8
618 ECDHE_ECDSA_WITH_AES_256_CCM_8            ECDHE-ECDSA-AES256-CCM8
619
620=head2 ARIA cipher suites from RFC6209, extending TLS v1.2
621
622Note: the CBC modes mentioned in this RFC are not supported.
623
624 TLS_RSA_WITH_ARIA_128_GCM_SHA256          ARIA128-GCM-SHA256
625 TLS_RSA_WITH_ARIA_256_GCM_SHA384          ARIA256-GCM-SHA384
626 TLS_DHE_RSA_WITH_ARIA_128_GCM_SHA256      DHE-RSA-ARIA128-GCM-SHA256
627 TLS_DHE_RSA_WITH_ARIA_256_GCM_SHA384      DHE-RSA-ARIA256-GCM-SHA384
628 TLS_DHE_DSS_WITH_ARIA_128_GCM_SHA256      DHE-DSS-ARIA128-GCM-SHA256
629 TLS_DHE_DSS_WITH_ARIA_256_GCM_SHA384      DHE-DSS-ARIA256-GCM-SHA384
630 TLS_ECDHE_ECDSA_WITH_ARIA_128_GCM_SHA256  ECDHE-ECDSA-ARIA128-GCM-SHA256
631 TLS_ECDHE_ECDSA_WITH_ARIA_256_GCM_SHA384  ECDHE-ECDSA-ARIA256-GCM-SHA384
632 TLS_ECDHE_RSA_WITH_ARIA_128_GCM_SHA256    ECDHE-ARIA128-GCM-SHA256
633 TLS_ECDHE_RSA_WITH_ARIA_256_GCM_SHA384    ECDHE-ARIA256-GCM-SHA384
634 TLS_PSK_WITH_ARIA_128_GCM_SHA256          PSK-ARIA128-GCM-SHA256
635 TLS_PSK_WITH_ARIA_256_GCM_SHA384          PSK-ARIA256-GCM-SHA384
636 TLS_DHE_PSK_WITH_ARIA_128_GCM_SHA256      DHE-PSK-ARIA128-GCM-SHA256
637 TLS_DHE_PSK_WITH_ARIA_256_GCM_SHA384      DHE-PSK-ARIA256-GCM-SHA384
638 TLS_RSA_PSK_WITH_ARIA_128_GCM_SHA256      RSA-PSK-ARIA128-GCM-SHA256
639 TLS_RSA_PSK_WITH_ARIA_256_GCM_SHA384      RSA-PSK-ARIA256-GCM-SHA384
640
641=head2 Camellia HMAC-Based cipher suites from RFC6367, extending TLS v1.2
642
643 TLS_ECDHE_ECDSA_WITH_CAMELLIA_128_CBC_SHA256 ECDHE-ECDSA-CAMELLIA128-SHA256
644 TLS_ECDHE_ECDSA_WITH_CAMELLIA_256_CBC_SHA384 ECDHE-ECDSA-CAMELLIA256-SHA384
645 TLS_ECDHE_RSA_WITH_CAMELLIA_128_CBC_SHA256   ECDHE-RSA-CAMELLIA128-SHA256
646 TLS_ECDHE_RSA_WITH_CAMELLIA_256_CBC_SHA384   ECDHE-RSA-CAMELLIA256-SHA384
647
648=head2 Pre-shared keying (PSK) cipher suites
649
650 PSK_WITH_NULL_SHA                         PSK-NULL-SHA
651 DHE_PSK_WITH_NULL_SHA                     DHE-PSK-NULL-SHA
652 RSA_PSK_WITH_NULL_SHA                     RSA-PSK-NULL-SHA
653
654 PSK_WITH_RC4_128_SHA                      PSK-RC4-SHA
655 PSK_WITH_3DES_EDE_CBC_SHA                 PSK-3DES-EDE-CBC-SHA
656 PSK_WITH_AES_128_CBC_SHA                  PSK-AES128-CBC-SHA
657 PSK_WITH_AES_256_CBC_SHA                  PSK-AES256-CBC-SHA
658
659 DHE_PSK_WITH_RC4_128_SHA                  DHE-PSK-RC4-SHA
660 DHE_PSK_WITH_3DES_EDE_CBC_SHA             DHE-PSK-3DES-EDE-CBC-SHA
661 DHE_PSK_WITH_AES_128_CBC_SHA              DHE-PSK-AES128-CBC-SHA
662 DHE_PSK_WITH_AES_256_CBC_SHA              DHE-PSK-AES256-CBC-SHA
663
664 RSA_PSK_WITH_RC4_128_SHA                  RSA-PSK-RC4-SHA
665 RSA_PSK_WITH_3DES_EDE_CBC_SHA             RSA-PSK-3DES-EDE-CBC-SHA
666 RSA_PSK_WITH_AES_128_CBC_SHA              RSA-PSK-AES128-CBC-SHA
667 RSA_PSK_WITH_AES_256_CBC_SHA              RSA-PSK-AES256-CBC-SHA
668
669 PSK_WITH_AES_128_GCM_SHA256               PSK-AES128-GCM-SHA256
670 PSK_WITH_AES_256_GCM_SHA384               PSK-AES256-GCM-SHA384
671 DHE_PSK_WITH_AES_128_GCM_SHA256           DHE-PSK-AES128-GCM-SHA256
672 DHE_PSK_WITH_AES_256_GCM_SHA384           DHE-PSK-AES256-GCM-SHA384
673 RSA_PSK_WITH_AES_128_GCM_SHA256           RSA-PSK-AES128-GCM-SHA256
674 RSA_PSK_WITH_AES_256_GCM_SHA384           RSA-PSK-AES256-GCM-SHA384
675
676 PSK_WITH_AES_128_CBC_SHA256               PSK-AES128-CBC-SHA256
677 PSK_WITH_AES_256_CBC_SHA384               PSK-AES256-CBC-SHA384
678 PSK_WITH_NULL_SHA256                      PSK-NULL-SHA256
679 PSK_WITH_NULL_SHA384                      PSK-NULL-SHA384
680 DHE_PSK_WITH_AES_128_CBC_SHA256           DHE-PSK-AES128-CBC-SHA256
681 DHE_PSK_WITH_AES_256_CBC_SHA384           DHE-PSK-AES256-CBC-SHA384
682 DHE_PSK_WITH_NULL_SHA256                  DHE-PSK-NULL-SHA256
683 DHE_PSK_WITH_NULL_SHA384                  DHE-PSK-NULL-SHA384
684 RSA_PSK_WITH_AES_128_CBC_SHA256           RSA-PSK-AES128-CBC-SHA256
685 RSA_PSK_WITH_AES_256_CBC_SHA384           RSA-PSK-AES256-CBC-SHA384
686 RSA_PSK_WITH_NULL_SHA256                  RSA-PSK-NULL-SHA256
687 RSA_PSK_WITH_NULL_SHA384                  RSA-PSK-NULL-SHA384
688 PSK_WITH_AES_128_GCM_SHA256               PSK-AES128-GCM-SHA256
689 PSK_WITH_AES_256_GCM_SHA384               PSK-AES256-GCM-SHA384
690
691 ECDHE_PSK_WITH_RC4_128_SHA                ECDHE-PSK-RC4-SHA
692 ECDHE_PSK_WITH_3DES_EDE_CBC_SHA           ECDHE-PSK-3DES-EDE-CBC-SHA
693 ECDHE_PSK_WITH_AES_128_CBC_SHA            ECDHE-PSK-AES128-CBC-SHA
694 ECDHE_PSK_WITH_AES_256_CBC_SHA            ECDHE-PSK-AES256-CBC-SHA
695 ECDHE_PSK_WITH_AES_128_CBC_SHA256         ECDHE-PSK-AES128-CBC-SHA256
696 ECDHE_PSK_WITH_AES_256_CBC_SHA384         ECDHE-PSK-AES256-CBC-SHA384
697 ECDHE_PSK_WITH_NULL_SHA                   ECDHE-PSK-NULL-SHA
698 ECDHE_PSK_WITH_NULL_SHA256                ECDHE-PSK-NULL-SHA256
699 ECDHE_PSK_WITH_NULL_SHA384                ECDHE-PSK-NULL-SHA384
700
701 PSK_WITH_CAMELLIA_128_CBC_SHA256          PSK-CAMELLIA128-SHA256
702 PSK_WITH_CAMELLIA_256_CBC_SHA384          PSK-CAMELLIA256-SHA384
703
704 DHE_PSK_WITH_CAMELLIA_128_CBC_SHA256      DHE-PSK-CAMELLIA128-SHA256
705 DHE_PSK_WITH_CAMELLIA_256_CBC_SHA384      DHE-PSK-CAMELLIA256-SHA384
706
707 RSA_PSK_WITH_CAMELLIA_128_CBC_SHA256      RSA-PSK-CAMELLIA128-SHA256
708 RSA_PSK_WITH_CAMELLIA_256_CBC_SHA384      RSA-PSK-CAMELLIA256-SHA384
709
710 ECDHE_PSK_WITH_CAMELLIA_128_CBC_SHA256    ECDHE-PSK-CAMELLIA128-SHA256
711 ECDHE_PSK_WITH_CAMELLIA_256_CBC_SHA384    ECDHE-PSK-CAMELLIA256-SHA384
712
713 PSK_WITH_AES_128_CCM                      PSK-AES128-CCM
714 PSK_WITH_AES_256_CCM                      PSK-AES256-CCM
715 DHE_PSK_WITH_AES_128_CCM                  DHE-PSK-AES128-CCM
716 DHE_PSK_WITH_AES_256_CCM                  DHE-PSK-AES256-CCM
717 PSK_WITH_AES_128_CCM_8                    PSK-AES128-CCM8
718 PSK_WITH_AES_256_CCM_8                    PSK-AES256-CCM8
719 DHE_PSK_WITH_AES_128_CCM_8                DHE-PSK-AES128-CCM8
720 DHE_PSK_WITH_AES_256_CCM_8                DHE-PSK-AES256-CCM8
721
722=head2 ChaCha20-Poly1305 cipher suites, extending TLS v1.2
723
724 TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256      ECDHE-RSA-CHACHA20-POLY1305
725 TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256    ECDHE-ECDSA-CHACHA20-POLY1305
726 TLS_DHE_RSA_WITH_CHACHA20_POLY1305_SHA256        DHE-RSA-CHACHA20-POLY1305
727 TLS_PSK_WITH_CHACHA20_POLY1305_SHA256            PSK-CHACHA20-POLY1305
728 TLS_ECDHE_PSK_WITH_CHACHA20_POLY1305_SHA256      ECDHE-PSK-CHACHA20-POLY1305
729 TLS_DHE_PSK_WITH_CHACHA20_POLY1305_SHA256        DHE-PSK-CHACHA20-POLY1305
730 TLS_RSA_PSK_WITH_CHACHA20_POLY1305_SHA256        RSA-PSK-CHACHA20-POLY1305
731
732=head2 TLS v1.3 cipher suites
733
734 TLS_AES_128_GCM_SHA256                     TLS_AES_128_GCM_SHA256
735 TLS_AES_256_GCM_SHA384                     TLS_AES_256_GCM_SHA384
736 TLS_CHACHA20_POLY1305_SHA256               TLS_CHACHA20_POLY1305_SHA256
737 TLS_AES_128_CCM_SHA256                     TLS_AES_128_CCM_SHA256
738 TLS_AES_128_CCM_8_SHA256                   TLS_AES_128_CCM_8_SHA256
739
740=head2 TLS v1.3 integrity-only cipher suites according to RFC 9150
741
742 TLS_SHA256_SHA256          TLS_SHA256_SHA256
743 TLS_SHA384_SHA384          TLS_SHA384_SHA384
744
745Note: these ciphers are purely HMAC based and do not provide any confidentiality
746and thus are disabled by default.
747These ciphers are only available at security level 0.
748
749=head2 Older names used by OpenSSL
750
751The following names are accepted by older releases:
752
753 SSL_DHE_RSA_WITH_3DES_EDE_CBC_SHA    EDH-RSA-DES-CBC3-SHA (DHE-RSA-DES-CBC3-SHA)
754 SSL_DHE_DSS_WITH_3DES_EDE_CBC_SHA    EDH-DSS-DES-CBC3-SHA (DHE-DSS-DES-CBC3-SHA)
755
756=head1 NOTES
757
758Some compiled versions of OpenSSL may not include all the ciphers
759listed here because some ciphers were excluded at compile time.
760
761=head1 EXAMPLES
762
763Verbose listing of all OpenSSL ciphers including NULL ciphers:
764
765 openssl ciphers -v 'ALL:eNULL'
766
767Include all ciphers except NULL and anonymous DH then sort by
768strength:
769
770 openssl ciphers -v 'ALL:!ADH:@STRENGTH'
771
772Include all ciphers except ones with no encryption (eNULL) or no
773authentication (aNULL):
774
775 openssl ciphers -v 'ALL:!aNULL'
776
777Include only 3DES ciphers and then place RSA ciphers last:
778
779 openssl ciphers -v '3DES:+RSA'
780
781Include all RC4 ciphers but leave out those without authentication:
782
783 openssl ciphers -v 'RC4:!COMPLEMENTOFDEFAULT'
784
785Include all ciphers with RSA authentication but leave out ciphers without
786encryption.
787
788 openssl ciphers -v 'RSA:!COMPLEMENTOFALL'
789
790Set security level to 2 and display all ciphers consistent with level 2:
791
792 openssl ciphers -s -v 'ALL:@SECLEVEL=2'
793
794=head1 SEE ALSO
795
796L<openssl(1)>,
797L<openssl-s_client(1)>,
798L<openssl-s_server(1)>,
799L<ssl(7)>
800
801=head1 HISTORY
802
803The B<-V> option was added in OpenSSL 1.0.0.
804
805The B<-stdname> is only available if OpenSSL is built with tracing enabled
806(B<enable-ssl-trace> argument to Configure) before OpenSSL 1.1.1.
807
808The B<-convert> option was added in OpenSSL 1.1.1.
809
810Support for standard IANA names in cipher lists was added in
811OpenSSL 3.2.0.
812
813The support for TLS v1.3 integrity-only cipher suites was added in OpenSSL 3.4.
814
815=head1 COPYRIGHT
816
817Copyright 2000-2025 The OpenSSL Project Authors. All Rights Reserved.
818
819Licensed under the Apache License 2.0 (the "License").  You may not use
820this file except in compliance with the License.  You can obtain a copy
821in the file LICENSE in the source distribution or at
822L<https://www.openssl.org/source/license.html>.
823
824=cut
825