This repository has been archived by the owner on May 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathopenssl-ciphers.sh
executable file
·78 lines (56 loc) · 1.79 KB
/
openssl-ciphers.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
#!/bin/sh
if [ "$OPENSSL" = "" ]; then
OPENSSL="openssl"
fi
function suites {
TAG=$1
if [ "$SUITES" = "" ]; then
SUITES=$1
else
SUITES="${SUITES}:$1"
fi
echo `${OPENSSL} ciphers -v "${SUITES}" | wc -l` $SUITES
echo ""
#openssl ciphers -v "${SUITES}" | sort
}
echo "The default set of cipher suites."
suites "ALL"
echo "There are some extra ciphers as well."
echo "Depending on your version of openssl some of these may be in the 'ALL' as well."
suites "COMPLEMENTOFALL"
echo "Removing NULL ciphers that off no encryption. These should be off by default"
suites "!NULL"
echo "Removing Anonymous Diffe-Hellman. This oddly on if you select 'HIGH'"
suites "!aNULL"
echo "Removing 'export' cryptography, aka weak-cryptography using 40 and 56 bit keys"
suites "!EXPORT"
echo "Removing plain DES cryptography (3DES ok)"
suites "!DES"
echo "Removing RC2 cryptography, deprecated, SSLv2"
suites "!RC2"
echo "Removing SEED, deprecated"
suites "!SEED"
echo "Removing IDEA, deprecated"
suites "!IDEA"
echo "Removing MD5, deprecated"
suites "!MD5"
echo "Removing CAMELLIA, not needed for SSL"
suites "!CAMELLIA"
echo "Removing PreShared Keys suites"
suites "!PSK"
echo "Removing Kerberos"
suites "!KRB5"
echo "Removing SRP key exchange. Originally designed to work around RSA patents.:"
suites '!SRP'
#echo "Removing Old Ephemeral DH key agreement 'EDH-'. Very slow, poor cipher support and other alternatives exist now"
#suites "!kEDH"
echo "Removing Au=DSS, requires cert you don't have"
suites '!DSS'
echo "Removing Au-ECDSA-, it requires a special certificate that you don't have"
suites '!ECDSA'
echo "Removing ECDH-, not needed as ECDHE is likely a better choice if using DH"
suites '!kECDH'
${OPENSSL} ciphers -v "${SUITES}" | sort
echo ""
echo "Google uses the same set, plus RC4-MD5 (why?)"
echo ""