summaryrefslogtreecommitdiffstats
path: root/ipaserver/install/certs.py
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2010-01-27 15:31:51 -0500
committerRob Crittenden <rcritten@redhat.com>2010-01-27 17:01:26 -0500
commitb7cda86697cfb8ffc25ab5d3c051f181e145648d (patch)
treeeef50ba7005fab34ed00471ec6004b09d7beae75 /ipaserver/install/certs.py
parentc092f3780df4417e5cf3512a1afedd109183628d (diff)
downloadfreeipa-b7cda86697cfb8ffc25ab5d3c051f181e145648d.tar.gz
freeipa-b7cda86697cfb8ffc25ab5d3c051f181e145648d.tar.xz
freeipa-b7cda86697cfb8ffc25ab5d3c051f181e145648d.zip
Update dogtag configuration to work after CVE-2009-3555 changes
NSS is going to disallow all SSL renegotiation by default. Because of this we need to always use the agent port of the dogtag server which always requires SSL client authentication. The end user port will prompt for a certificate if required but will attempt to re-do the handshake to make this happen which will fail with newer versions of NSS.
Diffstat (limited to 'ipaserver/install/certs.py')
-rw-r--r--ipaserver/install/certs.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/ipaserver/install/certs.py b/ipaserver/install/certs.py
index 6e7eb82d1..4fb794c82 100644
--- a/ipaserver/install/certs.py
+++ b/ipaserver/install/certs.py
@@ -570,11 +570,11 @@ class CertDB(object):
f = open(self.passwd_fname, "r")
password = f.readline()
f.close()
- conn = nsslib.NSSConnection(self.host_name, 9444, dbdir=self.secdir)
+ conn = nsslib.NSSConnection(self.host_name, api.env.ca_agent_port, dbdir=self.secdir)
conn.sslsock.set_client_auth_data_callback(client_auth_data_callback, "ipaCert", password, nss.get_default_certdb())
conn.set_debuglevel(0)
- conn.request("POST", "/ca/ee/ca/profileSubmit", params, headers)
+ conn.request("POST", "/ca/agent/ca/profileSubmitSSLClient", params, headers)
res = conn.getresponse()
data = res.read()
conn.close()
@@ -664,11 +664,11 @@ class CertDB(object):
f = open(self.passwd_fname, "r")
password = f.readline()
f.close()
- conn = nsslib.NSSConnection(self.host_name, 9444, dbdir=self.secdir)
+ conn = nsslib.NSSConnection(self.host_name, api.env.ca_agent_port, dbdir=self.secdir)
conn.sslsock.set_client_auth_data_callback(client_auth_data_callback, "ipaCert", password, nss.get_default_certdb())
conn.set_debuglevel(0)
- conn.request("POST", "/ca/ee/ca/profileSubmit", params, headers)
+ conn.request("POST", "/ca/agent/ca/profileSubmitSSLClient", params, headers)
res = conn.getresponse()
data = res.read()
conn.close()