0%

Hexo Blog - use https

What is https?

From Wikipedia, HTTPS(HTTP Secure) is an adaption of the Hypertext Transfer Protocol(HTTP) for secure communication over a computer network. The communication protocol is encrypted by Transport Layer Security(TLS), or formerly, its predecessor, Secure Sockets Layer(SSL).

  • HTTPS = HTTP + TLS = HTTP + SSL = HTTP Secure。

  • HTTP的URL由“http://”起始且默认使用端口80不同 https

  • HTTPS的URL由“https://”起始且默认使用端口443 https

总结:HTTPS经由HTTP进行通信,但利用SSL/TLS来加密数据包。


How to configure?

Steps:

  1. host with a dedicated IP address
  2. buy a certificate or get a free one from some free site
  3. activate the certificate
  4. install the certificate
  5. update the site to use HTTPS

step2可以通过Let’s Encrypt获得certificate

转自How to get HTTPS: Setting up SSL on your website

个人不认为以上方法会很轻松。另一方面,事实上很多静态网站托管服务已经包含https的一键设置,并且免费。可以参考介绍一些免费好用的静态网站托管服务

本站使用Netlify(推荐)。

Netlify配置

它的域名服务器在国外,所以国内访问会有点慢。
netlify-https
一键配置配置成功后的截图。


Reference

Wikipedia-HTTPS
How to get HTTPS: Setting up SSL on your website
介绍一些免费好用的静态网站托管服务