Check certificate information

openssl x509 -text -noout -in

Check certificate at Dovecot
openssl s_client -connect <>:993 -showcerts

check with url
echo | openssl s_client -servername <> -connect <>:443 2>/dev/null | openssl x509 -noout -dates

note:
URL without https part