From 32be3ef62210d77dc07f94837be739c82be17661 Mon Sep 17 00:00:00 2001 From: Stanislav Laznicka Date: Aug 22 2017 08:53:39 +0000 Subject: certmonger: fix storing retrieved certificates This was a forgotten part from previous certificate refactoring which would cause issues since the second part of results throughout the dogtag-ipa-ca-renew-agent-submit is expected to be a string. https://pagure.io/freeipa/issue/4985 Reviewed-By: Florence Blanc-Renaud --- diff --git a/install/certmonger/dogtag-ipa-ca-renew-agent-submit b/install/certmonger/dogtag-ipa-ca-renew-agent-submit index bcb6555..9453cbb 100755 --- a/install/certmonger/dogtag-ipa-ca-renew-agent-submit +++ b/install/certmonger/dogtag-ipa-ca-renew-agent-submit @@ -314,7 +314,7 @@ def store_cert(**kwargs): "Giving up. To retry storing the certificate, resubmit the " "request with CA \"dogtag-ipa-ca-renew-agent-reuse\"") - return (ISSUED, cert) + return (ISSUED, cert.public_bytes(x509.Encoding.PEM).decode('ascii')) def request_and_store_cert(**kwargs):