when trying to add syncthing.totally.rip to my existing certificate it fails with: An unexpected error occurred: AttributeError: 'str' object has no attribute 'append'
@erica@sydneyli, this appears to be a type confusion error in the nginx parser
File "/usr/lib/python3.6/site-packages/certbot_nginx/parser.py", line 674, in _add_directive
block.append(directive)
AttributeError: 'str' object has no attribute 'append'
Maybe the use of Mypy and/or the new nginx parser will avoid this problem in the future?
The GitHub gist does include the entire traceback and apparently the particular nginx configuration that Certbot was attempting to parse. It was Certbot 0.23.0.
It’s possible, but this might be an actual, different bug – there’s something weird going on, because the error’s hitting in http01.py, but it includes /etc/letsencrypt/le_tls_sni_01_cert_challenge.conf, and also there are DNS authzs being sent down from Let’s Encrypt, so it’s not entirely clear what’s going on immediately. I don’t have time to investigate this right now, but @schoen if you want to dig through tracebacks I’d appreciate figuring out what’s actually going on. Otherwise, I’ll look into this either later in the week or next week.
Ok, I attempted to reproduce this by replicating the setup and didn’t hit the bug. My recommendation is to add --preferred-challenges http-01, because I suspect this is caused by combining tls-sni-01 and http-01 challenges in a single cert.