2018-3-21 10:27:45 星期三

参考: 对https, http2的解释

总结:

生成自有证书(非第三方证书颁发公司)

我使用的是gitbash工具, 命令为:

$ openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout example.key -out example.crt

接下来会提问一堆问题:

 Generating a  bit RSA private key
............................................................................................+++
..........+++
writing new private key to 'example.key'
-----
You are about to be asked to enter information that will be incorporated
into 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 blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name ( letter code) [AU]:cn #国家简称
State or Province Name (full name) [Some-State]:shanghai #省份
Locality Name (eg, city) []:shanghai #城市
Organization Name (eg, company) [Internet Widgits Pty Ltd]:zhangzhibin #组织/公司名字
Organizational Unit Name (eg, section) []:tech #组织单位名
Common Name (e.g. server FQDN or YOUR name) []:www.test.com #域名/ip
Email Address []:@qq.com #邮箱

完成后, 会在当前目录下生成两个文件:

example.crt example.key

###########2019年4月21日 11:39:18

免费的公网认证证书

let's Encrypt

证书自动生成 CartBot

sudo certbot --nginx

最新文章

  1. IOleItemContainer的接口定义
  2. 345. Reverse Vowels of a String
  3. IMDb Search
  4. iOS开发 AFNetworking 3.0使用遇到的问题
  5. vs2010常用快捷方式
  6. Araxis Merge Professional v2014.4565 特别版 | 文件比较合并
  7. 一个PHP开发者总结的九条建议
  8. Android TextView属性
  9. php+jquery+ajax+json的一个最简单实例
  10. 线程篇-01-NSThread
  11. ASP.NET上传大文件出现网页无法显示的问题
  12. JAVA IDE IntelliJ IDEA 快捷键使用详记
  13. CentOS 7下使用Gitolite搭建Git私服
  14. Xcode安装CocoaPods
  15. ElasticSearch Nosql
  16. Unity Shader Graph(二)Dissolve Effect
  17. /var/lib/mysql 的访问权限问题 Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
  18. 关于promise的一些用法
  19. python 面向对象的类
  20. Javascript事件设计模式(七)

热门文章

  1. ACM-ICPC 2018 焦作赛区网络预赛 I Save the Room(水题)
  2. HDU - 1272 小希的迷宫(并查集判断环)
  3. 2018牛客网暑期ACM多校训练营(第一场)E Removal(DP)
  4. 061、flannel的连通与隔离(2019-04-01 周一)
  5. 解析/proc/net/dev
  6. Silverlight程序之修改命名空间
  7. springboot09-redis
  8. ubuntu安装matlab
  9. SQL手工注入入门级笔记(更新中)
  10. [C++]PAT乙级1002.写出这个数(20/20)