[Gajim-devel] Cert encoding error in nbxmpp [PATCH]

forenjunkie forenjunkie at chello.at
Fri Jun 8 14:02:01 CEST 2018


The only sensible thing we could do is as a fallback try in the local 
encoding the system has configured.

Regards

lovetox


Am 08.06.2018 um 13:43 schrieb forenjunkie:
>
> Hm,
>
> Why dont you open a Bug report with the distribution?
>
> There are many encodings, why should we implement trial and error 
> until we find the encoding?
>
> Regards
>
> lovetox
>
>
> Am 08.06.2018 um 07:06 schrieb Robert Marx:
>> A small addendum: this is a variant of #51, with some ISO8859-1
>> characters outside the allowed UTF8 range.
>>
>> Am 07.06.2018 um 21:22 schrieb Robert Marx:
>>> Dear Gajim developers,
>>>
>>> python-nbxmpp (master) seems to fail loading certificates that contain
>>> characters which are not allowed in utf-8 files. Some Linux
>>> distributions ship certificates that are encoded using ISO8859-1. This
>>> prevents gajim from establishing TLS connections, thus effectively
>>> rendering it nonfunctional. Ive read (ok skimmed) the relevant RFCs
>>> concerning the PEM and crt file formats and could not find any
>>> indication that these files (PEM, crt) are required to be UTF8 encoded.
>>>
>>> I've attached a patch against the master branch that fixes this problem
>>> with certificates using the ISO8859-1 encoding. The patch might be
>>> extended by including other encoding options. The ANSI encoding might be
>>> superfluous (probably a strict subset of UTF8) but I included it
>>> nonetheless to be safe.
>>>
>>> Cheers
>>> Robert
>>>
>>> PS: Sorry for not going through gitlab, but I happen to be hesitant to
>>> subscribe for a single patch.
>>>
>>>
>>>
>>> _______________________________________________
>>> Gajim-devel mailing list
>>> Gajim-devel at gajim.org
>>> https://lists.gajim.org/cgi-bin/listinfo/gajim-devel
>>>
>>>
>>>
>>> _______________________________________________
>>> Gajim-devel mailing list
>>> Gajim-devel at gajim.org
>>> https://lists.gajim.org/cgi-bin/listinfo/gajim-devel
>
>
>
> _______________________________________________
> Gajim-devel mailing list
> Gajim-devel at gajim.org
> https://lists.gajim.org/cgi-bin/listinfo/gajim-devel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gajim.org/pipermail/gajim-devel/attachments/20180608/fc83af9e/attachment.html>


More information about the Gajim-devel mailing list