You are describing TLS, which is commonly used for websites and web apps.
Try the following command:
openssl s_client -connect infosec.pub:443
The public key, the authority that signed the certificate, and the cypher used will all be visible.
For me, the cipher used is ECDHE-RSA-AES256-GCM-SHA384
.
It was quite nostalgic to do the research while writing this article!