为golang服务器创建letncrypt + certbot-auto证书的命令是什么

问题描述 投票:-1回答:1

我正在尝试为* .foobar.com创建证书

./certbot-auto certonly --standalone-supported-challenges http-01 -d *.foobar.com

但我得到错误:

certbot: error: unrecognized arguments: --standalone-supported-challenges http-01

我有谷歌这个错误,但我一直在使用apache服务器的示例获得答案。使用简单的golang webserver为典型的web应用程序(html,css,js,svgs,jpgs)提供服务的命令是什么?

lets-encrypt certbot
1个回答
0
投票

所以我遵循官方certbot说明:

https://certbot.eff.org/lets-encrypt/ubuntubionic-other

这是让它为我工作的命令:

cd certbot # change into cerbot dir
sudo ./certbot-auto certonly --standalone -d foobar.com
© www.soinside.com 2019 - 2024. All rights reserved.