openssl
OpenSSL cryptographic toolkit. Some subcommands such as
reqhave their own usage documentation. More information: https://docs.openssl.org/master/man1/openssl/.
- Generate a private key and encrypt the output file using AES-256:
openssl genpkey -algorithm -out -aes256
- Generate the corresponding public key from the private key
private.keyusingrsa:
openssl rsa -in -pubout -out
- Generate a self-signed certificate valid for a specified number of days (365):
openssl req -new -x509 -key -out -days 365
- Convert a certificate to
.pemor.derformat:
openssl x509 -in -out . -outform
- Check certificate details:
openssl x509 -in -text -noout
- Generate a certificate signing request (CSR):
openssl req -new -key -out
- Display help:
openssl help
- Display version:
openssl version
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
