diff options
| author | jmc <> | 2016-07-20 14:42:03 +0000 | 
|---|---|---|
| committer | jmc <> | 2016-07-20 14:42:03 +0000 | 
| commit | 2b01428c3caa4927f92d38bd9af125f40839bb8b (patch) | |
| tree | e2cc02938ad69567026071b3b82039f7f6ac5624 | |
| parent | 22a0d2d2ad39139f6c9af0cb94bc5d1db7d03dbc (diff) | |
| download | openbsd-2b01428c3caa4927f92d38bd9af125f40839bb8b.tar.gz openbsd-2b01428c3caa4927f92d38bd9af125f40839bb8b.tar.bz2 openbsd-2b01428c3caa4927f92d38bd9af125f40839bb8b.zip | |
strip back openssl ciphers:
- rearrange the descriptions of -V and -v to read more logically
- move the cipherlist text into the cipherlist description
- zap examples
| -rw-r--r-- | src/usr.bin/openssl/openssl.1 | 166 | 
1 files changed, 60 insertions, 106 deletions
| diff --git a/src/usr.bin/openssl/openssl.1 b/src/usr.bin/openssl/openssl.1 index 184da99a49..b8bf67565e 100644 --- a/src/usr.bin/openssl/openssl.1 +++ b/src/usr.bin/openssl/openssl.1 | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | .\" $OpenBSD: openssl.1,v 1.35 2016/07/19 20:02:47 jmc Exp $ | 1 | .\" $OpenBSD: openssl.1,v 1.36 2016/07/20 14:42:03 jmc Exp $ | 
| 2 | .\" ==================================================================== | 2 | .\" ==================================================================== | 
| 3 | .\" Copyright (c) 1998-2002 The OpenSSL Project. All rights reserved. | 3 | .\" Copyright (c) 1998-2002 The OpenSSL Project. All rights reserved. | 
| 4 | .\" | 4 | .\" | 
| @@ -112,7 +112,7 @@ | |||
| 112 | .\" | 112 | .\" | 
| 113 | .\" OPENSSL | 113 | .\" OPENSSL | 
| 114 | .\" | 114 | .\" | 
| 115 | .Dd $Mdocdate: July 19 2016 $ | 115 | .Dd $Mdocdate: July 20 2016 $ | 
| 116 | .Dt OPENSSL 1 | 116 | .Dt OPENSSL 1 | 
| 117 | .Os | 117 | .Os | 
| 118 | .Sh NAME | 118 | .Sh NAME | 
| @@ -795,9 +795,6 @@ The default value is | |||
| 795 | The same as | 795 | The same as | 
| 796 | .Fl extensions . | 796 | .Fl extensions . | 
| 797 | .El | 797 | .El | 
| 798 | .\" | ||
| 799 | .\" CIPHERS | ||
| 800 | .\" | ||
| 801 | .Sh CIPHERS | 798 | .Sh CIPHERS | 
| 802 | .Nm openssl ciphers | 799 | .Nm openssl ciphers | 
| 803 | .Op Fl hVv | 800 | .Op Fl hVv | 
| @@ -807,7 +804,7 @@ The same as | |||
| 807 | The | 804 | The | 
| 808 | .Nm ciphers | 805 | .Nm ciphers | 
| 809 | command converts | 806 | command converts | 
| 810 | .Nm OpenSSL | 807 | .Nm openssl | 
| 811 | cipher lists into ordered SSL cipher preference lists. | 808 | cipher lists into ordered SSL cipher preference lists. | 
| 812 | It can be used as a test tool to determine the appropriate cipherlist. | 809 | It can be used as a test tool to determine the appropriate cipherlist. | 
| 813 | .Pp | 810 | .Pp | 
| @@ -818,70 +815,52 @@ Print a brief usage message. | |||
| 818 | .It Fl tls1 | 815 | .It Fl tls1 | 
| 819 | Only include TLS v1 ciphers. | 816 | Only include TLS v1 ciphers. | 
| 820 | .It Fl V | 817 | .It Fl V | 
| 821 | Like | 818 | Verbose. | 
| 822 | .Fl v , | ||
| 823 | but include cipher suite codes in output (hex format). | ||
| 824 | .It Fl v | ||
| 825 | Verbose option. | ||
| 826 | List ciphers with a complete description of protocol version, | 819 | List ciphers with a complete description of protocol version, | 
| 827 | key exchange, authentication, encryption and mac algorithms used along with | 820 | key exchange, authentication, encryption and mac algorithms, | 
| 828 | any key size restrictions. | 821 | any key size restrictions, | 
| 829 | Note that without the | 822 | and cipher suite codes (hex format). | 
| 830 | .Fl v | 823 | .It Fl v | 
| 831 | option, ciphers may seem to appear twice in a cipher list. | 824 | Like | 
| 825 | .Fl V , | ||
| 826 | but without cipher suite codes. | ||
| 832 | .It Ar cipherlist | 827 | .It Ar cipherlist | 
| 833 | A cipher list to convert to a cipher preference list. | 828 | A cipher list to convert to a cipher preference list. | 
| 834 | If it is not included, the default cipher list will be used. | 829 | If it is not included, the default cipher list will be used. | 
| 835 | The format is described below. | 830 | .Pp | 
| 836 | .El | 831 | The cipher list consists of one or more cipher strings | 
| 837 | .Sh CIPHERS LIST FORMAT | ||
| 838 | The cipher list consists of one or more | ||
| 839 | .Em cipher strings | ||
| 840 | separated by colons. | 832 | separated by colons. | 
| 841 | Commas or spaces are also acceptable separators, but colons are normally used. | 833 | Commas or spaces are also acceptable separators, but colons are normally used. | 
| 842 | .Pp | 834 | .Pp | 
| 843 | The actual | 835 | The actual cipher string can take several different forms: | 
| 844 | .Em cipher string | ||
| 845 | can take several different forms: | ||
| 846 | .Pp | 836 | .Pp | 
| 847 | It can consist of a single cipher suite such as | 837 | It can consist of a single cipher suite, such as RC4-SHA. | 
| 848 | .Em RC4-SHA . | ||
| 849 | .Pp | 838 | .Pp | 
| 850 | It can represent a list of cipher suites containing a certain algorithm, | 839 | It can represent a list of cipher suites containing a certain algorithm, | 
| 851 | or cipher suites of a certain type. | 840 | or cipher suites of a certain type. | 
| 852 | For example | 841 | For example SHA1 represents all cipher suites using the digest algorithm SHA1. | 
| 853 | .Em SHA1 | ||
| 854 | represents all cipher suites using the digest algorithm SHA1. | ||
| 855 | .Pp | 842 | .Pp | 
| 856 | Lists of cipher suites can be combined in a single | 843 | Lists of cipher suites can be combined in a single cipher string using the | 
| 857 | .Em cipher string | ||
| 858 | using the | ||
| 859 | .Sq + | 844 | .Sq + | 
| 860 | character. | 845 | character | 
| 861 | This is used as a logical | 846 | (logical AND operation). | 
| 862 | .Em and | 847 | For example, SHA1+DES represents all cipher suites | 
| 863 | operation. | 848 | containing the SHA1 and DES algorithms. | 
| 864 | For example, | ||
| 865 | .Em SHA1+DES | ||
| 866 | represents all cipher suites containing the SHA1 and the DES algorithms. | ||
| 867 | .Pp | 849 | .Pp | 
| 868 | Each cipher string can be optionally preceded by the characters | 850 | Each cipher string can be optionally preceded by the characters | 
| 869 | .Sq \&! , | 851 | .Sq \&! , | 
| 870 | .Sq - , | 852 | .Sq - , | 
| 871 | or | 853 | or | 
| 872 | .Sq + . | 854 | .Sq + . | 
| 873 | .Pp | ||
| 874 | If | 855 | If | 
| 875 | .Sq !\& | 856 | .Sq !\& | 
| 876 | is used, then the ciphers are permanently deleted from the list. | 857 | is used, then the ciphers are permanently deleted from the list. | 
| 877 | The ciphers deleted can never reappear in the list even if they are | 858 | The ciphers deleted can never reappear in the list even if they are | 
| 878 | explicitly stated. | 859 | explicitly stated. | 
| 879 | .Pp | ||
| 880 | If | 860 | If | 
| 881 | .Sq - | 861 | .Sq - | 
| 882 | is used, then the ciphers are deleted from the list, but some or | 862 | is used, then the ciphers are deleted from the list, but some or | 
| 883 | all of the ciphers can be added again by later options. | 863 | all of the ciphers can be added again by later options. | 
| 884 | .Pp | ||
| 885 | If | 864 | If | 
| 886 | .Sq + | 865 | .Sq + | 
| 887 | is used, then the ciphers are moved to the end of the list. | 866 | is used, then the ciphers are moved to the end of the list. | 
| @@ -893,122 +872,97 @@ If the list includes any ciphers already present, they will be ignored; | |||
| 893 | that is, they will not be moved to the end of the list. | 872 | that is, they will not be moved to the end of the list. | 
| 894 | .Pp | 873 | .Pp | 
| 895 | Additionally, the cipher string | 874 | Additionally, the cipher string | 
| 896 | .Em @STRENGTH | 875 | .Cm @STRENGTH | 
| 897 | can be used at any point to sort the current cipher list in order of | 876 | can be used at any point to sort the current cipher list in order of | 
| 898 | encryption algorithm key length. | 877 | encryption algorithm key length. | 
| 899 | .Sh CIPHERS STRINGS | 878 | .El | 
| 879 | .Pp | ||
| 900 | The following is a list of all permitted cipher strings and their meanings. | 880 | The following is a list of all permitted cipher strings and their meanings. | 
| 901 | .Bl -tag -width "XXXX" | 881 | .Bl -tag -width "XXXX" | 
| 902 | .It Ar DEFAULT | 882 | .It Cm DEFAULT | 
| 903 | The default cipher list. | 883 | The default cipher list. | 
| 904 | This is determined at compile time and is currently | 884 | This is determined at compile time and is currently | 
| 905 | .Ar ALL:!aNULL:!eNULL:!SSLv2 . | 885 | .Cm ALL:!aNULL:!eNULL:!SSLv2 . | 
| 906 | This must be the first | 886 | This must be the first cipher string specified. | 
| 907 | .Ar cipher string | 887 | .It Cm COMPLEMENTOFDEFAULT | 
| 908 | specified. | ||
| 909 | .It Ar COMPLEMENTOFDEFAULT | ||
| 910 | The ciphers included in | 888 | The ciphers included in | 
| 911 | .Ar ALL , | 889 | .Cm ALL , | 
| 912 | but not enabled by default. | 890 | but not enabled by default. | 
| 913 | Currently this is | 891 | Currently this is | 
| 914 | .Ar ADH . | 892 | .Cm ADH . | 
| 915 | Note that this rule does not cover | 893 | Note that this rule does not cover | 
| 916 | .Ar eNULL , | 894 | .Cm eNULL , | 
| 917 | which is not included by | 895 | which is not included by | 
| 918 | .Ar ALL | 896 | .Cm ALL | 
| 919 | (use | 897 | (use | 
| 920 | .Ar COMPLEMENTOFALL | 898 | .Cm COMPLEMENTOFALL | 
| 921 | if necessary). | 899 | if necessary). | 
| 922 | .It Ar ALL | 900 | .It Cm ALL | 
| 923 | All cipher suites except the | 901 | All cipher suites except the | 
| 924 | .Ar eNULL | 902 | .Cm eNULL | 
| 925 | ciphers which must be explicitly enabled. | 903 | ciphers, which must be explicitly enabled. | 
| 926 | .It Ar COMPLEMENTOFALL | 904 | .It Cm COMPLEMENTOFALL | 
| 927 | The cipher suites not enabled by | 905 | The cipher suites not enabled by | 
| 928 | .Ar ALL , | 906 | .Cm ALL , | 
| 929 | currently being | 907 | currently being | 
| 930 | .Ar eNULL . | 908 | .Cm eNULL . | 
| 931 | .It Ar HIGH | 909 | .It Cm HIGH | 
| 932 | .Qq High | 910 | .Qq High | 
| 933 | encryption cipher suites. | 911 | encryption cipher suites. | 
| 934 | This currently means those with key lengths larger than 128 bits. | 912 | This currently means those with key lengths larger than 128 bits. | 
| 935 | .It Ar MEDIUM | 913 | .It Cm MEDIUM | 
| 936 | .Qq Medium | 914 | .Qq Medium | 
| 937 | encryption cipher suites, currently those using 128-bit encryption. | 915 | encryption cipher suites, currently those using 128-bit encryption. | 
| 938 | .It Ar LOW | 916 | .It Cm LOW | 
| 939 | .Qq Low | 917 | .Qq Low | 
| 940 | encryption cipher suites, currently those using 64- or 56-bit encryption | 918 | encryption cipher suites, currently those using 64- or 56-bit encryption | 
| 941 | algorithms. | 919 | algorithms. | 
| 942 | .It Ar eNULL , NULL | 920 | .It Cm eNULL , NULL | 
| 943 | The | 921 | The | 
| 944 | .Qq NULL | 922 | .Qq NULL | 
| 945 | ciphers; that is, those offering no encryption. | 923 | ciphers; that is, those offering no encryption. | 
| 946 | Because these offer no encryption at all and are a security risk, | 924 | Because these offer no encryption at all and are a security risk, | 
| 947 | they are disabled unless explicitly included. | 925 | they are disabled unless explicitly included. | 
| 948 | .It Ar aNULL | 926 | .It Cm aNULL | 
| 949 | The cipher suites offering no authentication. | 927 | The cipher suites offering no authentication. | 
| 950 | This is currently the anonymous DH algorithms. | 928 | This is currently the anonymous DH algorithms. | 
| 951 | These cipher suites are vulnerable to a | 929 | These cipher suites are vulnerable to a | 
| 952 | .Qq man in the middle | 930 | .Qq man in the middle | 
| 953 | attack, so their use is normally discouraged. | 931 | attack, so their use is normally discouraged. | 
| 954 | .It Ar kRSA , RSA | 932 | .It Cm kRSA , RSA | 
| 955 | Cipher suites using RSA key exchange. | 933 | Cipher suites using RSA key exchange. | 
| 956 | .It Ar kEDH | 934 | .It Cm kEDH | 
| 957 | Cipher suites using ephemeral DH key agreement. | 935 | Cipher suites using ephemeral DH key agreement. | 
| 958 | .It Ar aRSA | 936 | .It Cm aRSA | 
| 959 | Cipher suites using RSA authentication, i.e. the certificates carry RSA keys. | 937 | Cipher suites using RSA authentication, i.e. the certificates carry RSA keys. | 
| 960 | .It Ar aDSS , DSS | 938 | .It Cm aDSS , DSS | 
| 961 | Cipher suites using DSS authentication, i.e. the certificates carry DSS keys. | 939 | Cipher suites using DSS authentication, i.e. the certificates carry DSS keys. | 
| 962 | .It Ar TLSv1 | 940 | .It Cm TLSv1 | 
| 963 | TLS v1.0 cipher suites. | 941 | TLS v1.0 cipher suites. | 
| 964 | .It Ar DH | 942 | .It Cm DH | 
| 965 | Cipher suites using DH, including anonymous DH. | 943 | Cipher suites using DH, including anonymous DH. | 
| 966 | .It Ar ADH | 944 | .It Cm ADH | 
| 967 | Anonymous DH cipher suites. | 945 | Anonymous DH cipher suites. | 
| 968 | .It Ar AES | 946 | .It Cm AES | 
| 969 | Cipher suites using AES. | 947 | Cipher suites using AES. | 
| 970 | .It Ar 3DES | 948 | .It Cm 3DES | 
| 971 | Cipher suites using triple DES. | 949 | Cipher suites using triple DES. | 
| 972 | .It Ar DES | 950 | .It Cm DES | 
| 973 | Cipher suites using DES | 951 | Cipher suites using DES | 
| 974 | .Pq not triple DES . | 952 | .Pq not triple DES . | 
| 975 | .It Ar RC4 | 953 | .It Cm RC4 | 
| 976 | Cipher suites using RC4. | 954 | Cipher suites using RC4. | 
| 977 | .It Ar CAMELLIA | 955 | .It Cm CAMELLIA | 
| 978 | Cipher suites using Camellia. | 956 | Cipher suites using Camellia. | 
| 979 | .It Ar CHACHA20 | 957 | .It Cm CHACHA20 | 
| 980 | Cipher suites using ChaCha20. | 958 | Cipher suites using ChaCha20. | 
| 981 | .It Ar IDEA | 959 | .It Cm IDEA | 
| 982 | Cipher suites using IDEA. | 960 | Cipher suites using IDEA. | 
| 983 | .It Ar MD5 | 961 | .It Cm MD5 | 
| 984 | Cipher suites using MD5. | 962 | Cipher suites using MD5. | 
| 985 | .It Ar SHA1 , SHA | 963 | .It Cm SHA1 , SHA | 
| 986 | Cipher suites using SHA1. | 964 | Cipher suites using SHA1. | 
| 987 | .El | 965 | .El | 
| 988 | .Sh CIPHERS EXAMPLES | ||
| 989 | Verbose listing of all | ||
| 990 | .Nm OpenSSL | ||
| 991 | ciphers including NULL ciphers: | ||
| 992 | .Pp | ||
| 993 | .Dl $ openssl ciphers -v 'ALL:eNULL' | ||
| 994 | .Pp | ||
| 995 | Include all ciphers except NULL and anonymous DH then sort by | ||
| 996 | strength: | ||
| 997 | .Pp | ||
| 998 | .Dl $ openssl ciphers -v 'ALL:!ADH:@STRENGTH' | ||
| 999 | .Pp | ||
| 1000 | Include only 3DES ciphers and then place RSA ciphers last: | ||
| 1001 | .Pp | ||
| 1002 | .Dl $ openssl ciphers -v '3DES:+RSA' | ||
| 1003 | .Pp | ||
| 1004 | Include all RC4 ciphers but leave out those without authentication: | ||
| 1005 | .Pp | ||
| 1006 | .Dl $ openssl ciphers -v 'RC4:!COMPLEMENTOFDEFAULT' | ||
| 1007 | .Pp | ||
| 1008 | Include all ciphers with RSA authentication but leave out ciphers without | ||
| 1009 | encryption: | ||
| 1010 | .Pp | ||
| 1011 | .Dl $ openssl ciphers -v 'RSA:!COMPLEMENTOFALL' | ||
| 1012 | .\" | 966 | .\" | 
| 1013 | .\" CRL | 967 | .\" CRL | 
| 1014 | .\" | 968 | .\" | 
