SSL证书笔记

#生成证书注册请求和key
openssl req -new -newkey rsa:2048 -nodes -keyout D:\SSL\demo.nnkin.com.key -out D:\SSL\demo.nnkin.com.csr

  • Country Name (2 letter code):国家代码(如 CN,US)。
  • State or Province Name:省或州(如 Beijing)。
  • Locality Name:城市(如 Beijing)。
  • Organization Name:组织名称(如 Your Company Ltd.)。
  • Organizational Unit Name:部门名称(如 IT Department)。
  • Common Name:最重要的字段,必须是你要使用证书的域名(如 www.example.com)或服务器名。如果是内部使用,可以是 NetBIOS 名或 FQDN(如 myserver 或 myserver.yourdomain.local)。
  • Email Address:邮箱地址(可留空)。

将CSR用于注册 base64 编码的 CMC 或 PKCS #10 文件提交一个证书申请,然后选择 “Base 64 编码”,点击 “下载证书”,将得到一个CER格式证书。

#将CER转CRT
openssl x509 -inform PEM -in D:\SSL\demo.nnkin.com.cer -out D:\SSL\demo.nnkin.com.crt

 

0

  1. This post has no comment yet

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

使用DLVM本地部署DeepSeek(补充)
使用DLVM本地部署DeepSeek(补充)
Linux 6 张图
Error response from daemon: Get “https://registry-1.docker.io/v2/”: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
Error response from daemon: Get “https://registry-1.docker.io/v2/”: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
Linux 2 张图
MySQL 30周年庆 OCP 认证免费
MySQL 30周年庆 OCP 认证免费
Linux 5 张图
使用Kubeadm在Ubuntu 20.04中部署Kubernetes
使用Kubeadm在Ubuntu 20.04中部署Kubernetes
Linux 24 张图
在Linux上安装和配置Squid代理服务器
在Linux上安装和配置Squid代理服务器
Linux 10 张图
Wifipumpkin3 安装记录
Wifipumpkin3 安装记录
© 2025 诺诺博客如有侵权请联系删除 | 网站地图 | 百度统计 | 又拍云CDN加速
为了获得更好的浏览效果 建议您使用IE8.0及以上版本浏览器登陆本站点 · 服务器托管于腾讯云