How to generate OpenSSL certificate and fingerprint

7. aprīlis, 2020

Generate openssl sha256 certificate

Bash
openssl req -x509 -sha256 -newkey rsa:2048 -keyout certificate.key -out certificate.crt -days 1024 -nodes

Generate certificate fingerprint

Bash
openssl x509 -noout -fingerprint -sha256 -inform pem -in certificate.crt