SSL证书生成
来源:互联网 发布:中国汽车工业工程 知乎 编辑:程序博客网 时间:2024/06/03 21:55
设置openssl.cnf路径:
set OPENSSL_CONF=G:\libs\openssl-1.0.1e\bin\openssl.cnf
生成私钥:
> genrsa -des3 -out server.key 2048Loading 'screen' into random state - doneGenerating RSA private key, 2048 bit long modulus....................................+++....................................................................................+++e is 65537 (0x10001)Enter pass phrase for server.key:Verifying - Enter pass phrase for server.key:
可以将密码删除:
OpenSSL> rsa -in server.key -out server_no_password.keyEnter pass phrase for server.key:writing RSA key
生成证书请求文件(CSR):
OpenSSL> req -new -key server.key -out server.csrEnter pass phrase for server.key:Loading 'screen' into random state - doneYou are about to be asked to enter information that will be incorporatedinto your certificate request.What you are about to enter is what is called a Distinguished Name or a DN.There are quite a few fields but you can leave some blankFor some fields there will be a default value,If you enter '.', the field will be left blank.-----Country Name (2 letter code) [AU]:CNState or Province Name (full name) [Some-State]:BeijingLocality Name (eg, city) []:BeijingOrganization Name (eg, company) [Internet Widgits Pty Ltd]:xxxsoftOrganizational Unit Name (eg, section) []:xxxsoftCommon Name (e.g. server FQDN or YOUR name) []:xxxsoft.comEmail Address []:comaxy@126.comPlease enter the following 'extra' attributesto be sent with your certificate requestA challenge password []:1234An optional company name []:cynhard
生成证书文件:
OpenSSL> x509 -req -days 365 -in server.csr -signkey server_no_password.key -out server.crtLoading 'screen' into random state - doneSignature oksubject=/C=CN/ST=Beijing/L=Beijing/O=xxxsoft/OU=xxxsoft/CN=xxxsoft.com/emailAddress=comaxy@126.comGetting Private key
阅读全文
1 0
- SSL证书生成方法
- SSL证书生成方式
- 生成SSL证书
- Tomcat SSL证书生成
- 如何生成SSL证书
- 生成apache ssl证书
- SSL 证书生成方法
- ssl证书生成
- SSL证书生成全过程
- 生成SSL证书
- SSL证书生成方法
- openssl 生成SSL证书
- openssl 生成 SSL证书
- openssl生成ssl证书
- 如何生成ssl证书
- linux 生成ssl证书
- SSL证书生成方法
- OpenSSl生成 SSL证书
- Spring Boot系列(一) Spring Boot介绍和基础POM文件
- 嵌入式软件分层设计思想
- python模块学习(threading模块中的Timer类)
- git 远程仓库 回退
- ElasticSearch优化系列三:索引过程
- SSL证书生成
- 国家标准线
- 分析共享池脚本
- [Leetcode] 444. Sequence Reconstruction 解题报告
- JZOJsenior4323.【NOIP2015提高组Day1】神奇的幻方
- Android-->圆角图片,圆角任意View,圆角父布局Layout(任意形状的View且超简洁实现)
- (案例六)三种scrapy模拟登陆策略
- eclipse 全文搜索
- JQuery3.1.1源码解读(十六)【dom-html】