You are here

openssl

Ivan Radovanovic's picture

How to see all certificates that web server sends

It can be done using openssl:
openssl s_client -connect SERVER:PORT -showcerts

Ivan Radovanovic's picture

Creating certificate request with OpenSSL

It can be done like this

openssl req -new -newkey rsa:2048 -nodes -keyout certificate.key -out certificate.csr

Ivan Radovanovic's picture

Extracting private key and certificate from pfx file

To extract private key:

  • openssl pkcs12 -in file.pfx -nocerts -out pk.pem
  • openssl rsa -in pk.pem -out key.pem

To extract certificate:

  • openssl pkcs12 -in file.pfx -clcerts -nokeys -out cert.pem
Subscribe to RSS - openssl