Gehe zu deutscher Webseite

ViaThinkSoft CodeLib

This article is in:
CodeLibHow-TosMiscellaneous

This code also supports SNI (Server-Name-Indication):

#!/bin/sh
ADDR=www.viathinksoft.de
PORT=443
# To display the certificate data:
echo "" | openssl s_client -connect "$ADDR:$PORT" -servername "$ADDR" | openssl x509 -noout -text
# To extract the certificate:
echo "" | openssl s_client -connect "$ADDR:$PORT" -servername "$ADDR" | openssl x509 -out servercert.pem
Daniel Marschall
ViaThinkSoft Co-Founder