client: fix retrieving certs from HTTP

We're applying bytes regex on the result of a command but were
using decoded stdout instead of raw.

https://pagure.io/freeipa/issue/7131

Reviewed-By: Florence Blanc-Renaud <frenaud@redhat.com>
This commit is contained in:
Stanislav Laznicka
2017-09-13 10:38:08 +02:00
parent 286bbb2ab7
commit c4505f0804
+1 -1
View File
@@ -1615,7 +1615,7 @@ def get_ca_certs_from_http(url, warn=True):
result = run([paths.BIN_CURL, "-o", "-", url], capture_output=True)
except CalledProcessError:
raise errors.NoCertificateError(entry=url)
stdout = result.output
stdout = result.raw_output
try:
certs = x509.load_certificate_list(stdout)