我正在尝试让 let's Encrypt 在 Ubuntu 16.04 服务器 -> LAMP -> Webmin -> Virtualmin 上运行,但是在请求证书时出现错误。我使用以下命令进行安装:
apt-get update
apt-get -y install git bc
git clone https://github.com/letsencrypt/letsencrypt /opt/letsencrypt
/opt/letsencrypt/letsencrypt-auto --help
填写这个路径里面
Webmin -> Webmin 配置 -> 左上角的模块配置链接或按钮 -> Let's Encrypt 客户端的完整路径
/opt/letsencrypt/
错误信息:
Parsing account key...
Parsing CSR...
Registering account...
Already registered!
Verifying domain1234.com...
Traceback (most recent call last):
File "/usr/share/webmin/webmin/acme_tiny.py", line 202, in <module>
main(sys.argv[1:])
File "/usr/share/webmin/webmin/acme_tiny.py", line 198, in main
signed_crt = get_crt(args.account_key, args.csr, args.acme_dir, log=LOGGER, CA=args.ca)
File "/usr/share/webmin/webmin/acme_tiny.py", line 122, in get_crt
resp = urlopen(wellknown_url)
File "/usr/lib/python2.7/urllib2.py", line 154, in urlopen
return opener.open(url, data, timeout)
File "/usr/lib/python2.7/urllib2.py", line 429, in open
response = self._open(req, data)
File "/usr/lib/python2.7/urllib2.py", line 447, in _open
'_open', req)
File "/usr/lib/python2.7/urllib2.py", line 407, in _call_chain
result = func(*args)
File "/usr/lib/python2.7/urllib2.py", line 1228, in http_open
return self.do_open(httplib.HTTPConnection, req)
File "/usr/lib/python2.7/urllib2.py", line 1201, in do_open
r = h.getresponse(buffering=True)
File "/usr/lib/python2.7/httplib.py", line 1136, in getresponse
response.begin()
File "/usr/lib/python2.7/httplib.py", line 453, in begin
version, status, reason = self._read_status()
File "/usr/lib/python2.7/httplib.py", line 417, in _read_status
raise BadStatusLine(line)
httplib.BadStatusLine: ''
答案1
完整路径包括文件名,例如:/x/y/filename.pls 在我使用 Let's Encrypt 的情况下,完整路径是:/opt/letsencrypt/certbot-auto