Skip to content

Instantly share code, notes, and snippets.

@alvarow
alvarow / openssl-cheat.sh
Last active November 12, 2024 16:01
OpenSSL and Keytool cheat sheet
# Generate a new key
openssl genrsa -out server.key 2048
# Generate a new CSR
openssl req -sha256 -new -key server.key -out server.csr
# Check certificate against CA
openssl verify -verbose -CApath ./CA/ -CAfile ./CA/cacert.pem cert.pem
# Self Signed