Bash
openssl s_client -connect <hostname>:636 -showcerts | openssl x509 -noout -serialIT and other stuff
openssl s_client -connect <hostname>:636 -showcerts | openssl x509 -noout -serial