openssl
OpenSSL cryptographic toolkit. Some subcommands such as `req` have their own usage documentation.
More info →Subcommands (10)
Generate digest values and perform signature operations.
Generate asymmetric key pairs.
Generate RSA private keys.
Compute prime numbers.
Generate random bytes using a cryptographically secure PRNG.
Manage PKCS#10 Certificate Signing Requests.
Create TLS client connections.
Benchmark OpenSSL algorithms.
Generate and verify timestamps.
Manage X.509 certificates.
Examples (8)
Generate a private key and encrypt the output file using AES-256
openssl genpkey -algorithm rsa|ec -out path/to/private.key -aes256Generate the corresponding public key from the private key `private.key` using `rsa`
openssl rsa -in path/to/private.key -pubout -out path/to/public.keyGenerate a self-signed certificate valid for a specified number of days (365)
openssl req -new -x509 -key path/to/private.key -out path/to/certificate.crt -days 365Convert a certificate to `.pem` or `.der` format
openssl x509 -in path/to/certificate.crt -out path/to/certificate.pem|path/to/certificate.der -outform pem|derCheck certificate details
openssl x509 -in path/to/certificate.crt -text -nooutGenerate a certificate signing request (CSR)
openssl req -new -key path/to/private.key -out path/to/request.csrDisplay version
openssl version