17.给http域名添加证书

1,登录cloudflare

登录cloudflare网站,传送门https://www.cloudflare.com/。如果没有账号自己去注册个
登陆成功后,点击 +Add Site添加一个域名

https_1.jpg

2,添加域名

输入你购买的域名,点击add site


https_2.jpg

3,选择套餐
这个个人用的话就选择免费的就好


https_3.jpg

4,添加DNS记录


https_4.jpg

添加纪录需要知道服务器公网ip,这里用的是阿里云

https_5.jpg

添加好后,点击下一步
5,复制dns


https_6.jpg

6,这里要去修改你购买的dns,还是以阿里云为例子,
,登陆阿里账号。找到你购买d域名,点击管理


https_6.jpg

![https_8.jpg](https://upload-images.jianshu.io/upload_images/12197462-7bf45fce3b302abc.jpg?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)

选择dns修改


https_8.jpg

修改成功后,一般提示48个小时。其实时间也灭那么长也就十几分钟

7,查看激活
回到cloudflare网站,点击确定


https_6.jpg

成功之后就是这个样子


https_10.jpg

7,验证
在浏览器输入您的域名,看看有没有https,有就成功了。


https_9.jpg

你可能感兴趣的:(17.给http域名添加证书)