Use https to get security domain from Dogtag

Signed-off-by: Christian Heimes <cheimes@redhat.com>
Reviewed-By: Tomas Krizek <tkrizek@redhat.com>
This commit is contained in:
Christian Heimes 2017-02-24 13:00:25 +01:00 committed by Tomas Krizek
parent 11c9df2577
commit d1c5d92897
No known key found for this signature in database
GPG Key ID: 22A2A94B5E49415A

View File

@ -47,7 +47,11 @@ def get_security_domain():
Get the security domain from the REST interface on the local Dogtag CA Get the security domain from the REST interface on the local Dogtag CA
This function will succeed if the local dogtag CA is up. 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) domain_client = pki.system.SecurityDomainClient(connection)
info = domain_client.get_security_domain_info() info = domain_client.get_security_domain_info()
return info return info