mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2026-07-29 15:55:47 -05:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user