openssl: command to show certificate infos

Did you ever was on a server, but did not remember, what the certificate is for?