Getting ssl/tls fingerprints for fetchmailrc

Using a secure connections, fetchmail compares the fingerprint of the server’s certificate with one specified in the configuration file. If those fingerprints do not match, the connection will fail with: fetchmail: $SERVER fingerprints do not match! fetchmail: SSL connection failed. So, what’s the fastest way to get the server’s certificateā¦