Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
testing_tls_ssl_encryption [2018/03/31 08:46] Stephane de Labrusse |
testing_tls_ssl_encryption [2022/01/06 15:27] (current) Stephane de Labrusse [ssllabs.com] |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ===== Testing TLS/SSL encryption ===== | ||
+ | ====Command-line==== | ||
+ | Some commands for QA | ||
+ | |||
+ | xmpp | ||
+ | |||
+ | < | ||
+ | openssl s_client | ||
+ | </ | ||
+ | |||
+ | domain.org is the domain of xmpp | ||
+ | |||
+ | < | ||
+ | nmap --script ssl-enum-ciphers sub.domain.org -p 5223 | ||
+ | </ | ||
+ | |||
+ | httpd | ||
+ | |||
+ | curl -k -v https:// | ||
+ | curl -k -v https:// | ||
+ | curl -k -v https:// | ||
+ | |||
+ | httpd vhost | ||
+ | |||
+ | openssl s_client -servername vm8.dpnet.nethesis.it -connect 192.168.122.8: | ||
+ | |||
+ | httpd-admin | ||
+ | |||
+ | curl -k -v https:// | ||
+ | |||
+ | slapd | ||
+ | |||
+ | LDAPTLS_REQCERT=never ldapsearch -ZZ -s base -H ldap:// | ||
+ | |||
+ | dovecot | ||
+ | |||
+ | curl --ssl -k -v -u first.user: | ||
+ | |||
+ | postfix | ||
+ | |||
+ | curl --ssl -k -v -u first.user: | ||
+ | |||
+ | generate a CSR with server alt names (`-subj`) | ||
+ | |||
+ | openssl req -new -sha256 -key ecc-qa-key.pem -out ecc-qa-csr.csr -subj '/ | ||
+ | |||
+ | Nmap | ||
+ | |||
+ | | ||
+ | |||
+ | The `nmap` command in Fedora 28 has more detailed output than the one in CentOS7. | ||
+ | |||
+ | openssl | ||
+ | |||
+ | < | ||
+ | openssl s_client -showcerts -connect 192.168.56.8: | ||
+ | </ | ||
+ | ====CryptCheck==== | ||
+ | https:// | ||
+ | |||
+ | test ssl/tls/ssh | ||
+ | |||
+ | ====ssllabs.com==== | ||
+ | |||
+ | https:// | ||
+ | ==== testssl.sh ==== | ||
+ | |||
testssl.sh is a free command line tool which checks a server' | testssl.sh is a free command line tool which checks a server' | ||
Read more at https:// | Read more at https:// | ||
- | * how to install | + | |
+ | ===How | ||
< | < | ||
yum install git | yum install git | ||
Line 8: | Line 77: | ||
cd testssl.sh/ | cd testssl.sh/ | ||
</ | </ | ||
+ | |||
+ | ===Services=== | ||
Here how to test services, please refer to the man for complete commands | Here how to test services, please refer to the man for complete commands | ||
+ | |||
+ | * openldap | ||
+ | |||
+ | < | ||
+ | | ||
+ | |||
+ | </ | ||
+ | |||
+ | * Samba AD | ||
+ | |||
+ | < | ||
+ | | ||
+ | </ | ||
* https | * https | ||
+ | < | ||
./ | ./ | ||
+ | </ | ||
* httpd-admin | * httpd-admin | ||
+ | < | ||
./ | ./ | ||
+ | </ | ||
* smtp | * smtp | ||
+ | < | ||
./ | ./ | ||
./ | ./ | ||
+ | </ | ||
* imap and pop3 | * imap and pop3 | ||
+ | < | ||
./ | ./ | ||
./ | ./ | ||
+ | </ | ||
+ | | ||
| | ||
- | {{tag> | + | {{tag> |