xdtianyu / scripts

scripts for work
https://www.xdty.org
1.03k stars 245 forks source link

bug #17

Closed uutan closed 8 years ago

uutan commented 8 years ago

File "/tmp/acme_tiny.py", line 31 pub_exp = "0{0}".format(pub_exp) if len(pub_exp) % 2 else pub_exp

SyntaxError: invalid syntax

xdtianyu commented 8 years ago

感谢反馈,可以提供下系统信息及 python 版本吗,这里来看是 acme_tiny 出错了

uutan commented 8 years ago

Python 2.4.3 (#1, Apr 14 2011, 20:41:59) [GCC 4.1.2 20080704 (Red Hat 4.1.2-50)] on linux2

xdtianyu commented 8 years ago

额,大概是因为版本太老了 acme_tiny 没有做兼容。

uutan commented 8 years ago

又来麻烦你了。 已升级了Python至2.7.2,但现在到这个错 Traceback (most recent call last): File "/tmp/acme_tiny.py", line 198, in main(sys.argv[1:]) File "/tmp/acme_tiny.py", line 194, in main signed_crt = get_crt(args.account_key, args.csr, args.acme_dir, log=LOGGER, CA=args.ca) File "/tmp/acme_tiny.py", line 149, in get_crt domain, challenge_status)) ValueError: www.xxxxxxx.com challenge did not pass: {u'status': u'invalid', u'validationRecord': [{u'url': u'http://www.xxxxxx.com/.well-known/acme-challenge/CVzmfIxxxxxmUpuv-1gU3zQYmxxxxxV0nU', u'hostname': u'www.xxxxxx.com', u'addressUsed': u'xxx. xxx.xxx.xxx', u'port': u'80', u'addressesResolved': [u'xxx.xxx.xxx.xxx']}], u'keyAuthorization': u'CVzmfInxxxxxxUpuv-1xxxxxmuXH96SyextO5V0nU.t-xLIhTDY15uQYeYO8X24c_RBfiOns6O-IjxT0vztQo', u'uri': u'https://acme-v01.api.letsencrypt.org/acme/challenge/5pu-ruhYVbRGt2Rh6zcsDNa448SxxxxxxIQYgsJs/428dxxx522', u'token': u'CVzmfIxxxxxmUpuv-1gU3zQYmuXxxxxxxxxV0nU', u'error': {u'type': u'urn:acme:error:connection', u'detail': u'DNS problem: query timed out looking up CAA for www.xxxxx.com'}, u'type': u'http-01'}

uutan commented 8 years ago

感谢,已解决了。

xdtianyu commented 8 years ago

额,尽量不要把域名和IP信息贴出来。从上面的看应该是DNS解析的问题,你是怎么解决的呢?