Back to All Commands
Most Viewed
Favorites
Recently Viewed
openssl Commands
Security
Check SSL Certificate
Check SSL certificate validity
openssl x509 -in certificate.crt -text -noout
Key Generation
openssl genrsa
Generate RSA private key.
openssl genrsa
Examples:
Generate 2048-bit RSA private keyopenssl genrsa -out private.key 2048
openssl genrsa -des3 -out private.key 2048
Certificate Management
openssl req
Generate certificate signing request (CSR).
openssl req
Examples:
Generate CSR with private keyopenssl req -new -key private.key -out request.csr
openssl req -new -key private.key -out request.csr -config openssl.cnf
openssl x509
Certificate display and signing utility.
openssl x509
Examples:
View certificate detailsopenssl x509 -in certificate.crt -text -noout
openssl x509 -in certificate.crt -dates -noout
openssl verify
Verify certificate chain.
openssl verify
Examples:
Verify certificateopenssl verify certificate.crt
openssl verify -CAfile ca-bundle.crt certificate.crt
Keystore Management
Ssl/tls Testing
openssl s_client
SSL/TLS client program for testing connections.
openssl s_client
Examples:
Test SSL connectionopenssl s_client -connect example.com:443
openssl s_client -connect example.com:443 -servername example.com
openssl s_client -connect example.com:443 -showcerts
Encryption
openssl enc
Encrypt or decrypt files using various algorithms.
openssl enc
Examples:
Encrypt file with AESopenssl enc -aes-256-cbc -in file.txt -out file.enc
openssl enc -aes-256-cbc -d -in file.enc -out file.txt
Random Generation
openssl rand
Generate random bytes.
openssl rand
Examples:
Generate random bytesopenssl rand -out random.bin 32
openssl rand -hex 32
openssl rand -base64 32