openssl

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
openssl [2020/10/29 14:23] tmaieropenssl [2021/03/12 12:53] (current) tmaier
Line 8: Line 8:
  
 ===== X.509 ===== ===== X.509 =====
-Parsing a PEM file: ''openssl x509 -text -in some_file -inform pem''+  * Parsing a PEM file: ''openssl x509 -text -in some_file -inform pem'' 
 +  * Download and parse certificate: ''echo | openssl s_client -starttls=smtp -connect some_domain.tld:25 2>/dev/null | openssl x509 -text''
  
 ===== Connect with TLS ===== ===== Connect with TLS =====
-  * Connect to SMTP: ''openssl s_client -connect some_domain.tld:587 -starttls smtp''<br>+  * Connect to SMTP: ''openssl s_client -connect some_domain.tld:587 -starttls smtp''
   * Download certificate (HTTPS w/o SNI): ''openssl s_client -showcerts -connect some_domain.tld:443 </dev/null''   * Download certificate (HTTPS w/o SNI): ''openssl s_client -showcerts -connect some_domain.tld:443 </dev/null''
   * Download certificate (HTTPS w/ SNI): ''openssl s_client -showcerts -servername some_domain.tld -connect some_domain.tld:443 </dev/null''   * Download certificate (HTTPS w/ SNI): ''openssl s_client -showcerts -servername some_domain.tld -connect some_domain.tld:443 </dev/null''
  
  • openssl.1603977831.txt.gz
  • Last modified: 2020/12/29 02:09
  • (external edit)