mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Add the -v option to sslget to provide more verbose errors
I noticed a couple of bad references in ipapython/dogtag.py and fixed those as well. We used to call sslget for all our SSL client needs before python-nss was written. https://fedorahosted.org/freeipa/ticket/2391
This commit is contained in:
parent
960baaebf4
commit
b9e3685534
@ -74,8 +74,8 @@ def https_request(host, port, url, secdir, password, nickname, **kw):
|
|||||||
host = host.encode('utf-8')
|
host = host.encode('utf-8')
|
||||||
uri = 'https://%s%s' % (ipautil.format_netloc(host, port), url)
|
uri = 'https://%s%s' % (ipautil.format_netloc(host, port), url)
|
||||||
post = urlencode(kw)
|
post = urlencode(kw)
|
||||||
root_logger.info('sslget %r', uri)
|
root_logger.debug('https_request %r', uri)
|
||||||
root_logger.debug('sslget post %r', post)
|
root_logger.debug('https_request post %r', post)
|
||||||
request_headers = {"Content-type": "application/x-www-form-urlencoded",
|
request_headers = {"Content-type": "application/x-www-form-urlencoded",
|
||||||
"Accept": "text/plain"}
|
"Accept": "text/plain"}
|
||||||
try:
|
try:
|
||||||
|
@ -746,6 +746,7 @@ class CAInstance(service.Service):
|
|||||||
# mod_nss.
|
# mod_nss.
|
||||||
args = [
|
args = [
|
||||||
'/usr/bin/sslget',
|
'/usr/bin/sslget',
|
||||||
|
'-v',
|
||||||
'-n', 'ipa-ca-agent',
|
'-n', 'ipa-ca-agent',
|
||||||
'-p', self.admin_password,
|
'-p', self.admin_password,
|
||||||
'-d', self.ca_agent_db,
|
'-d', self.ca_agent_db,
|
||||||
@ -765,6 +766,7 @@ class CAInstance(service.Service):
|
|||||||
# Now issue the RA certificate.
|
# Now issue the RA certificate.
|
||||||
args = [
|
args = [
|
||||||
'/usr/bin/sslget',
|
'/usr/bin/sslget',
|
||||||
|
'-v',
|
||||||
'-n', 'ipa-ca-agent',
|
'-n', 'ipa-ca-agent',
|
||||||
'-p', self.admin_password,
|
'-p', self.admin_password,
|
||||||
'-d', self.ca_agent_db,
|
'-d', self.ca_agent_db,
|
||||||
|
Loading…
Reference in New Issue
Block a user