Display to whom it was issued from PEM file
Create certificate request from existing key (SHA2)
Create certificate request from existing certificate and key
Show public key for private key
Convert certificates to PEM format
Test SSL connection and print out SSL certificate
Connect to SMTP server with STARTTLS
Useful site with SSL commands, CSR and certificate decoder:
https://redkestrel.co.uk/articles/openssl-commands/
$ openssl req -noout -text -in /etc/apache2/ssl/server2016.csr
$ openssl x509 -noout -in imapd.pem -subject
$ openssl x509 -noout -text -in /etc/apache2/ssl/server2016.crt
$ openssl genrsa 2048 > www.linuxia.de.key
$ openssl req -new -key www.linuxia.de.key -sha256 -out server2016.csr
$ openssl x509 -x509toreq -in www.linuxia.de.crt -out www.linuxia.de.csr -signkey www.linuxia.de.key
$ openssl rsa -in www.linuxia.de.key -pubout
$ openssl x509 -inform der -in linuxia.crt -out linuxia.pem
$ openssl s_client -connect 192.168.26.241:443
$ openssl s_client -connect 192.168.26.241:25 --starttls smtp
$ openssl rsa -in www.linuxia.de.pass.key -outform PEM -pubout -out www.linuxia.de.key
For more information, check the OpenSSL Command-Line HOWTO.