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 pathexample-google.sh
executable file
·57 lines (49 loc) · 2.3 KB
/
example-google.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
#!/bin/sh
#
# Sample to see how this works
#
export HOSTPORT=www.google.com
export URLPATH=/
source ./sslassert.sh
sslassert_init
sslassert 'secure-renegotiation = on'
sslassert 'compression = off'
sslassert 'certificate-length -eq 1024'
sslassert 'protocol-ssl-v2 = off'
sslassert 'protocol-ssl-v3 = on'
sslassert 'protocol-tls-v10 = on'
sslassert 'protocol-tls-v11 = on'
sslassert 'protocol-tls-v12 = on'
sslassert 'protocol-tls12-suite-allowed-on-tls10 = off'
sslassert "crypto-suite-count -eq 17"
sslassert "cipher-suite-ECDHE-RSA-AES128-GCM-SHA256 = on"
sslassert "cipher-suite-ECDHE-RSA-AES256-GCM-SHA384 = on"
sslassert "cipher-suite-ECDHE-RSA-AES128-SHA256 = on"
sslassert "cipher-suite-ECDHE-RSA-AES256-SHA384 = on"
sslassert "cipher-suite-ECDHE-RSA-RC4-SHA = on"
sslassert "cipher-suite-ECDHE-RSA-AES128-SHA = on"
sslassert "cipher-suite-ECDHE-RSA-AES256-SHA = on"
sslassert "cipher-suite-ECDHE-RSA-DES-CBC3-SHA = on"
sslassert "cipher-suite-AES128-GCM-SHA256 = on"
sslassert "cipher-suite-AES256-GCM-SHA384 = on"
sslassert "cipher-suite-AES128-SHA256 = on"
sslassert "cipher-suite-AES256-SHA256 = on"
sslassert "cipher-suite-RC4-SHA = on"
sslassert "cipher-suite-AES128-SHA = on"
sslassert "cipher-suite-AES256-SHA = on"
sslassert "cipher-suite-DES-CBC3-SHA = on"
sslassert 'cipher-suite-RC4-MD5 = on'
sslassert 'crypto-weak = off'
sslassert 'crypto-null = off'
sslassert 'crypto-adh = off'
sslassert 'crypto-camellia = off'
sslassert 'crypto-idea = off'
sslassert 'crypto-seed = off'
sslassert 'crypto-sha160 = on'
sslassert 'crypto-md5 = on'
sslassert 'crypto-gcm = on'
sslassert 'crypto-winxp-ie-compatible = on'
sslassert 'crypto-forward-secrecy = on'
sslassert 'beast-attack = off'
sslassert 'certificate-chain-length -gt 1'
exit $SSLASSERT_EXIT