I need to get SSL certificate of some mail servers. I know I need to do execute following steps.
- Do a DNS mx query on the domain name (
dig google.com mx).
- Use the information to download SSL certificate (
openssl s_client -showcerts -connect google.com:443).
But I am not sure what information I should pick up from step 1 and how it should be used in step 2.