openssl notes



Show Certificate Information:
# openssl x509 -noout -text < example.crt


Calculate certificate sha1 fingerprint
# openssl x509 -noout -fingerprint -sha1 < example.crt


Calculate certificate md5 fingerprint
# openssl x509 -noout -fingerprint -md5 < example.crt


Create a Private Key and a Certificate ( request )
# openssl req -new -nodes -keyout example.key -out example.req
It will most probably create a 1024bit RSA key.

Create a 2048 bit RSA Private Key and a Certificate ( request )
$ openssl req \
> -new -newkey rsa:2048 -nodes \
> -keyout private_key.pem -out key_csr.pem


Sign a certificate
# openssl ca -config ca.config -keyfile ca.key -cert ca.crt -out example.crt -infiles example.req 


Test an openssl server
# openssl s_client -connect 192.0.2.33:443


http://alog.ipduh.com/2013/01/openssl-notes.html



openssl notes