1

我有一个带有 ISPConfig 3.1.13p1 的 Ubuntu 16.04 服务器。最近我创建了一个新网站,并像往常一样检查了“Let's Encrypt”和“SSL”。但是,几分钟后,该设置被删除。我猜这是创建证书的问题。域 DNS 没问题,但我发现了这些日志:

2020-05-28 18:25:02,145:DEBUG:certbot.main:Arguments: ['-n', '--text', '--agree-tos', '--expand', '--authenticator', 'webroot', '--server', 'https://acme-v02.api.letsencrypt.org/directory', '--rsa-key-size', '4096', '--email', 'postmaster@mydomain.it', '--domains', 'mydomain.it', '--domains', 'www.mydomain.it', '--webroot-path', '/usr/local/ispconfig/interface/acme']
2020-05-28 18:25:02,145:DEBUG:certbot.main:Discovered plugins: PluginsRegistry(PluginEntryPoint#manual,PluginEntryPoint#null,PluginEntryPoint#standalone,PluginEntryPoint#webroot)
2020-05-28 18:25:02,154:DEBUG:certbot.log:Root logging level set at 20
2020-05-28 18:25:02,155:INFO:certbot.log:Saving debug log to /var/log/letsencrypt/letsencrypt.log
2020-05-28 18:25:02,156:DEBUG:certbot.plugins.selection:Requested authenticator webroot and installer None
2020-05-28 18:25:02,156:DEBUG:certbot.plugins.selection:Single candidate plugin: * webroot
Description: Place files in webroot directory
Interfaces: IAuthenticator, IPlugin
Entry point: webroot = certbot.plugins.webroot:Authenticator
Initialized: <certbot.plugins.webroot.Authenticator object at 0x7f97a49f0400>
Prep: True
2020-05-28 18:25:02,157:DEBUG:certbot.plugins.selection:Selected authenticator <certbot.plugins.webroot.Authenticator object at 0x7f97a49f0400> and installer None
2020-05-28 18:25:02,157:INFO:certbot.plugins.selection:Plugins selected: Authenticator webroot, Installer None
2020-05-28 18:25:02,201:DEBUG:certbot.log:Exiting abnormally:
Traceback (most recent call last):
  File "/usr/bin/letsencrypt", line 11, in <module>
    load_entry_point('certbot==0.31.0', 'console_scripts', 'certbot')()
  File "/usr/lib/python3/dist-packages/certbot/main.py", line 1365, in main
    return config.func(config, plugins)
  File "/usr/lib/python3/dist-packages/certbot/main.py", line 1234, in certonly
    le_client = _init_le_client(config, auth, installer)
  File "/usr/lib/python3/dist-packages/certbot/main.py", line 605, in _init_le_client
    acc, acme = _determine_account(config)
  File "/usr/lib/python3/dist-packages/certbot/main.py", line 513, in _determine_account
    acc = display_ops.choose_account(accounts)
  File "/usr/lib/python3/dist-packages/certbot/display/ops.py", line 86, in choose_account
    "Please choose an account", labels, force_interactive=True)
  File "/usr/lib/python3/dist-packages/certbot/display/util.py", line 507, in menu
    self._interaction_fail(message, cli_flag, "Choices: " + repr(choices))
  File "/usr/lib/python3/dist-packages/certbot/display/util.py", line 469, in _interaction_fail
    raise errors.MissingCommandlineFlag(msg)
certbot.errors.MissingCommandlineFlag: Missing command line flag or config entry for this setting:
Please choose an account
Choices: ['web1.localdomain@2019-04-04T14:30:30Z (7c2a)', 'my.server.com@2017-03-05T02:16:08Z (f1b3)']

搜索类似的错误,我发现这篇文章:我可以确认在 /etc/letsencrypt 中有 2 个目录:acme-v01.api.letsencrypt.org 和 acme-v02.api.letsencrypt.org

如何修复从 ISPConfig 使用的脚本以获取此新域的证书?

4

0 回答 0