我一直在跟随一些教程来为我的服务器(Node应用程序)添加SSL。
我尝试在我的Ubuntu 20.04服务器上使用以下命令安装Certbot:
但是收到了警告,没有安装。
在搜索了互联网之后,有提到不要使用PPA,而是使用早期的独立版本,还有提到使用snap。但我找不到一个确切的答案。我正在使用Express而不是nginX。
请问有人可以建议如何安装吗?
更新:
运行了sudo snap install certbot。
结果:
我尝试在我的Ubuntu 20.04服务器上使用以下命令安装Certbot:
sudo add-apt-repository ppa:certbot/certbot
但是收到了警告,没有安装。
This is the PPA for packages prepared by Debian Let's Encrypt Team and backported for Ubuntu.
Note: Packages are only provided for currently supported Ubuntu releases.
More info: https://launchpad.net/~certbot/+archive/ubuntu/certbot
Press [ENTER] to continue or Ctrl-c to cancel adding it.*
在搜索了互联网之后,有提到不要使用PPA,而是使用早期的独立版本,还有提到使用snap。但我找不到一个确切的答案。我正在使用Express而不是nginX。
请问有人可以建议如何安装吗?
更新:
运行了sudo snap install certbot。
结果:
error: This revision of snap "certbot" was published using classic confinement and thus may perform
arbitrary system changes outside of the security sandbox that snaps are usually confined to,
which may put your system at risk.
If you understand and want to proceed repeat the command including --classic.
sudo add-apt-repository ppa:certbot/certbot
将 certbot PPA 添加到可信源列表中。既然你已将其添加到源列表中,现在可以安装他们发布的软件包。运行该命令后,请确保通过sudo apt-get update
进行更新,然后就可以安装他们发布的软件包了(他们在此处列出:https://launchpad.net/~certbot/+archive/ubuntu/certbot/+packages)。 - user96931