6

6.https域名配置

 2 years ago
source link: http://muyunyun.cn/blog/RaspberryPi/6.https%E5%9F%9F%E5%90%8D%E9%85%8D%E7%BD%AE/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Https 域名配置

由于域名并没有备案,因此笔者将域名端口挂在非 80 端口(90)上,非 80 的端口笔者尝试配置 Https 服务并未成功,后续如有需求继续调研。

更进一步地,接着配置使访问 https://frp.muyunyun.cn:90 也生效。

  • 步骤一: 安装 acme.sh

https://github.com/acmesh-official/acme.sh/wiki/sudo

#unstall for current user
acme.sh --uninstall
#change to root
sudo su
#install again for root user
curl https://get.acme.sh | sh -s [email protected]
source ~/.bashrc

操作中若出现权限不足相关问题比如 ./acme.sh: 2249: cannot create /home/ubuntu/.bashrc: Permission denied,可以使用如下命令:

sudo chmod 777 .bashrc
  • 步骤二: 获取 https 证书
acme.sh --issue -d frp.muyunyun.cn:90 --nginx

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK