openssl s_client -connect $HOST:$PORT -showcerts -verify 1