summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Heimes <cheimes@redhat.com>2017-02-24 13:00:25 +0100
committerTomas Krizek <tkrizek@redhat.com>2017-03-03 13:33:51 +0100
commitd1c5d92897d3e262edd2e43295c1270590aebd3d (patch)
treea3c352ccdb899b4af147ef4171f72478f9c5479a
parent11c9df25774fbc8ed24b30f75c205d12ca3c5b90 (diff)
downloadfreeipa-d1c5d92897d3e262edd2e43295c1270590aebd3d.tar.gz
freeipa-d1c5d92897d3e262edd2e43295c1270590aebd3d.tar.xz
freeipa-d1c5d92897d3e262edd2e43295c1270590aebd3d.zip
Use https to get security domain from Dogtag
Signed-off-by: Christian Heimes <cheimes@redhat.com> Reviewed-By: Tomas Krizek <tkrizek@redhat.com>
-rw-r--r--ipaserver/install/dogtaginstance.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/ipaserver/install/dogtaginstance.py b/ipaserver/install/dogtaginstance.py
index 9cbd34942..356358adf 100644
--- a/ipaserver/install/dogtaginstance.py
+++ b/ipaserver/install/dogtaginstance.py
@@ -47,7 +47,11 @@ def get_security_domain():
Get the security domain from the REST interface on the local Dogtag CA
This function will succeed if the local dogtag CA is up.
"""
- connection = PKIConnection()
+ connection = PKIConnection(
+ protocol='https',
+ hostname=api.env.ca_host,
+ port='8443'
+ )
domain_client = pki.system.SecurityDomainClient(connection)
info = domain_client.get_security_domain_info()
return info