1. 创建certificate request configuration file

cert_req.conf
************************************************

[ req ]
default_bits =
default_keyfile = keystonekey.pem
default_md = default prompt = no
distinguished_name = Distiguished_name [ Distiguished_name ]
countryName = CN
stateOrProvinceName = BJ
localityName = Beijing
organizationName = example
organizationalUnitName = example
commonName = Keystone Signing
emailAddress = example@example.com

************************************************

2. 生成私钥和CSR(Certificate Signing Request),注意私钥不能加密(-nodes选项),最终私钥为signing_key.pem, CSR为signing_cert_req.pem

$ openssl \
req -newkey rsa: -nodes\
-keyout signing_key.pem -keyform PEM \
-out signing_cert_req.pem -outform PEM \
-config cert_req.conf \

3. 将生成的CSR发给CA,请求我们的证书
我们采用CAcert来生成证书,仅用于实验环境,最终保存为:signing_cert.pem

4. 获取CA的证书,用于构建证书信任链
这里我们直接采用CAcert公司的证书,保存为:ca_cert.pem

最新文章

  1. 使用SharpPCap在C#下进行网络抓包
  2. 语言模型kenlm的训练及使用
  3. js鼠标滚轮滚动图片切换效果
  4. Mysql数据库中存储中文为乱码
  5. websocket和swoole
  6. PHP中的 extends与implements 区别 [转]
  7. update操作多张表
  8. How to install Node.js on Linux
  9. Maven基本操作命令
  10. Ubuntu14.04浏览器Firefox安装flash播放插件
  11. Linux学习之竿头直上
  12. workday1
  13. 如何在AngularX 中 使用ngrx
  14. Oracle查看存储过程最后编辑时间
  15. HTML中的坐标系及其在MouseEvent和元素Box中的应用
  16. CodeWarrior 10 配置Jlint初始化文件
  17. PHP中如何给日期加上一个月/天
  18. Error fetching command 'collectstatic': You're using the staticfiles app without having set the STATIC_ROOT setting to a filesystem path. Command 'collectstatic' skipped
  19. 潭州课堂25班:Ph201805201 爬虫高级 第九课 scrapyd 部署 (课堂笔记)
  20. TF-IDF的解释

热门文章

  1. 【内核】内核链表使用说明,list.h注释
  2. Asp.Net MVC分页PageList
  3. SecurityError: Blocked a frame with origin from accessing a cross-origin frame
  4. Ubuntu 搜狗输入法崩溃 重启办法
  5. LeetCode: Merge k Sorted Lists 解题报告
  6. delphi判断线程是否正在运行
  7. C#学习笔记(20)——使用IComparer(自己写的)
  8. TCC分布式事务
  9. 【Java】使用BigDecimal类进行精确小数计算
  10. Android控件GridView之仿支付宝钱包首页带有分割线的GridView九宫格的完美实现