Cannot create cert due to 'Content-Type': 'text/plain; charset=UTF-8'


#1

Hello,

I’m unable to generate a cert because of this error:

2015-11-17 06:16:42,373:DEBUG:acme.challenges:Wrong Content-Type: found 'text/plain; charset=UTF-8', expected 'text/plain'

I am using the following command:

./letsencrypt-auto certonly -a manual   -d clarjon1.com    --server https://acme-v01.api.letsencrypt.org/directory --agree-dev-preview

I attempted to use an htaccess file to remove the charset and force just text/plain, with the entries below. I have confirmed by making the content-type plain/text on accident

RemoveCharset *
Header set Cache-Control "no-transform"
Header set Content-Type "text/plain"

#2

Update: I was able to patch the challenges.py that was installed to expect the extra “; charset=UTF-8” – perhaps the script can be updated to check for a ; and use that as a split/delimiter, and ignore info after it, seeing as the data before would be what it’s actually looking for?


#3

it’s a known issue at https://github.com/letsencrypt/letsencrypt/issues/1062