在 Linux 系统中,OpenSSL 证书通常是指使用 OpenSSL 工具生成、管理或使用的 SSL/TLS 数字证书。下面从几个层面通俗解释。
OpenSSL 是一个开源的加密工具库和命令行工具,广泛用于:
在 Linux 中,常见命令如:
openssl genrsa
openssl req
openssl x509
严格来说:
OpenSSL 本身不“发明”证书,它只是用来生成和使用 X.509 格式的数字证书。
所以“Linux OpenSSL 证书”一般指:
openssl genrsa -out server.key 2048
openssl req -new -key server.key -out server.csr
openssl x509 -req -days 365 \
-in server.csr \
-signkey server.key \
-out server.crt
| 类型 | 说明 |
|---|---|
| 自签名证书 | 自己签发,浏览器不信任 |
| CA 签名证书 | 由受信任机构签发(如 Let’s Encrypt) |
| 通配符证书 | 支持 *.example.com |
| 客户端证书 | 用于双向认证 |
/etc/ssl/
/etc/ssl/certs/
/etc/ssl/private/
Web 服务通常配置:
ssl_certificate /etc/ssl/certs/server.crt;
ssl_certificate_key /etc/ssl/private/server.key;
Linux OpenSSL 证书 = 使用 OpenSSL 工具生成或管理的 SSL/TLS 数字证书,用于加密和身份验证。
如果你愿意,我可以: