博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
01.openssl-创建证书签名请求
阅读量:2243 次
发布时间:2019-05-09

本文共 979 字,大约阅读时间需要 3 分钟。

1.Creating Certificate Signing Requests

openssl req -new -key fd.key -out fd.csr

2.After a CSR is generated, use it to sign your own certificate and/or send it to a public CA

and ask it to sign the certificate.
openssl req -text -in fd.csr -noout

3.openssl x509 -x509toreq -in fd.crt -out fd.csr -signkey fd.key

4.添加以下内容到fd.cnf

[req]
prompt = no
distinguished_name = dn
req_extensions = ext
input_password = PASSPHRASE
[dn]
CN = www.feistyduck.com
emailAddress = webmaster@feistyduck.com
O = Feisty Duck Ltd
L = London
C = GB
[ext]
subjectAltName = DNS:www.feistyduck.com,DNS:feistyduck.com

5.openssl req -new -config fd.cnf -key fd.key -out fd.csr

6签署自己的证书

openssl req -new -x509 -days 365 -key fd.key -out fd.crt 或
openssl req -new -x509 -days 365 -key fd.key -out fd.crt -subj “/C=GB/L=London/O=Feisty Duck Ltd/CN=www.feistyduck.com”

7.创建对多个主机名有效的证书

openssl x509 -req -days 365 -in fd.csr -signkey fd.key -out fd.crt -extfile fd.ext

8.检查证书

openssl x509 -text -in fd.crt -noout

转载地址:http://hlwdb.baihongyu.com/

你可能感兴趣的文章
什么情况下用+运算符进行字符串连接比调用StringBuilder对象的append方法连接字符串性能更好?
查看>>
怎么根据Comparable方法中的compareTo方法的返回值的正负 判断升序 还是 降序?
查看>>
理解事务的4种隔离级别
查看>>
常用正则匹配符号
查看>>
建议42: 让工具类不可实例化
查看>>
Java 异步机制与同步机制的区别
查看>>
hibernate的对象三种状态说明
查看>>
什么是N+1查询?
查看>>
Spring 接管 Hibernate 配置 延迟加载
查看>>
找出不在预定数组中的自然数
查看>>
String常见面试题
查看>>
直插,快排,堆排,归并排序的分析
查看>>
二叉树的各种操作(面试必备)
查看>>
oracle
查看>>
泛型与通配符详解
查看>>
BaseServiceImpl中的实现关键点
查看>>
Struts2中的session、request、respsonse获取方法
查看>>
如何理解MVC模型
查看>>
SpringMVC中乱码解决方案
查看>>
SpringMVC中时间格式转换的解决方案
查看>>