Testare un servizio SSL: Difference between revisions

From RVM Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
Per testare un servizio IMAPS con telnet:
=Tramite openssl=
 
*Per testare un servizio IMAPS:


  openssl s_client -connect hostname.com:443
  openssl s_client -connect hostname.com:443


Oppure, si può installare il client telnet con ssl:
* 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
  sudo apt-get install telnet-ssl


E testare il servizio con:
* Testare il servizio con:
  telnet -z ssl hostname.dom servicenape/port
  telnet -z ssl hostname.dom servicenape/port


Esempio 1:
Esempio 1:
  telnet -z ssl fire.croalliance.com imaps
  telnet -z ssl server.example.com imaps


Esempio 2
Esempio 2
  telnet -z ssl fire.croalliance.com 995
  telnet -z ssl server.example.com 995


==Riferimenti==
==Riferimenti==
*[http://www.utahsysadmin.com/2007/11/08/testing-httphttps-through-telnetopenssl/ UtahSysAdmin.com | Testing HTTP/HTTPS through telnet/openssl:]
*[http://www.utahsysadmin.com/2007/11/08/testing-httphttps-through-telnetopenssl/ UtahSysAdmin.com | Testing HTTP/HTTPS through telnet/openssl:]
*[http://a2.pluto.it/a2508.htm#almlindex8604 Appunti Linux: 408.5 - Telnet-SSL]
*[http://a2.pluto.it/a2508.htm#almlindex8604 Appunti Linux: 408.5 - Telnet-SSL]
*[https://www.feistyduck.com/library/openssl-cookbook/online/ch-testing-with-openssl.html OpenSSL Cookbook: Chapter 2. Testing with OpenSSL]
*[https://langui.sh/2009/03/14/checking-a-remote-certificate-chain-with-openssl/ Checking A Remote Certificate Chain With OpenSSL]

Latest revision as of 15:12, 22 February 2017

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