From 99a17fb5f6a3a2ac553fd919a3c0e7c23c4dc722 Mon Sep 17 00:00:00 2001
From: Martin Basti <mbasti@redhat.com>
Date: Fri, 26 Aug 2016 17:01:51 +0200
Subject: [PATCH] Print to debug output answer from CA

CA request may fail due various erros, without debug output we cannot
decide what is wrong.
---
 ipaserver/install/certs.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/ipaserver/install/certs.py b/ipaserver/install/certs.py
index 9eaec73..693a00d 100644
--- a/ipaserver/install/certs.py
+++ b/ipaserver/install/certs.py
@@ -404,6 +404,7 @@ def issue_server_cert(self, certreq_fname, cert_fname):
             self.host_name, 8443, "/ca/ee/ca/profileSubmitSSLClient",
             self.secdir, password, "ipaCert", **params)
         http_status, http_headers, http_body = result
+        root_logger.debug("CA answer: %s", http_body)
 
         if http_status != 200:
             raise CertificateOperationError(
