Testare un servizio SSL

From RVM Wiki
Jump to navigation Jump to search

Tramite openssl

  • Per testare un servizio IMAPS:
openssl s_client -connect hostname.com:443
  • Per verificare tutti i dettagli di un certificato, ad esempio:
echo quit | openssl s_client -connect servername.example.com:465 | openssl x509 -text -noout
  • Per verificare un servizio STARTTLS, tipo ftp, imap, smtp
echo quit | openssl s_client -connect server.example.com:21 -starttls ftp | openssl x509 -text -noout

Tremite telnet-ssl

  • Installare il client telnet con ssl:
sudo apt-get install telnet-ssl
  • Testare il servizio con:
telnet -z ssl hostname.dom servicenape/port

Esempio 1:

telnet -z ssl server.example.com imaps

Esempio 2

telnet -z ssl server.example.com 995

Riferimenti