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

时间:2019-04-13 18:10:51

标签: lets-encrypt certbot

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

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

但是我得到了错误:

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

我在Google上看到了此错误,但是我不断获得有关使用Apache服务器的示例的答案。使它与服务于典型Web应用程序(html,css,js,某些svgs,jpgs)的简单golang网络服务器一起工作的命令是什么

1 个答案:

答案 0 :(得分:0)

所以我遵循certbot官方说明:

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

这是使它对我有用的命令:

Internal Server Error: /ideas/
Traceback (most recent call last):
  File "/home/iob/.virtualenvs/djangodev/lib/python3.6/site-packages/django/core/handlers/exception.py", line 35, in inner
    response = get_response(request)
  File "/home/iob/.virtualenvs/djangodev/lib/python3.6/site-packages/django/core/handlers/base.py", line 128, in _get_response
    response = self.process_exception_by_middleware(e, request)
  File "/home/iob/.virtualenvs/djangodev/lib/python3.6/site-packages/django/core/handlers/base.py", line 126, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/home/iob/.virtualenvs/djangodev/lib/python3.6/site-packages/django/views/generic/base.py", line 69, in view
    return self.dispatch(request, *args, **kwargs)
  File "/home/iob/.virtualenvs/djangodev/lib/python3.6/site-packages/django/views/generic/base.py", line 89, in dispatch
    return handler(request, *args, **kwargs)
  File "/home/iob/Labs/PythonLab/cloudsaver/ideas/views.py", line 44, in post
    print(form.is_valid())
  File "/home/iob/.virtualenvs/djangodev/lib/python3.6/site-packages/django/forms/forms.py", line 179, in is_valid
    return self.is_bound and not self.errors
  File "/home/iob/.virtualenvs/djangodev/lib/python3.6/site-packages/django/forms/forms.py", line 174, in errors
    self.full_clean()
  File "/home/iob/.virtualenvs/djangodev/lib/python3.6/site-packages/django/forms/forms.py", line 378, in full_clean
    self._post_clean()
  File "/home/iob/.virtualenvs/djangodev/lib/python3.6/site-packages/django/forms/models.py", line 396, in _post_clean
    self.instance = construct_instance(self, self.instance, opts.fields, opts.exclude)
  File "/home/iob/.virtualenvs/djangodev/lib/python3.6/site-packages/django/forms/models.py", line 60, in construct_instance
    f.save_form_data(instance, cleaned_data[f.name])
  File "/home/iob/.virtualenvs/djangodev/lib/python3.6/site-packages/django/db/models/fields/__init__.py", line 838, in save_form_data
    setattr(instance, self.name, data)
  File "/home/iob/.virtualenvs/djangodev/lib/python3.6/site-packages/django/db/models/fields/related_descriptors.py", line 197, in __set__
    self.field.remote_field.model._meta.object_name,
ValueError: Cannot assign "'Android'": "Idea.group" must be a "Ideas_Group" instance.
[14/Apr/2019 19:34:36] "POST /ideas/ HTTP/1.1" 500 115171