summaryrefslogtreecommitdiffstats
path: root/ipaserver/install/cainstance.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/cainstance.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/cainstance.py')
-rw-r--r--ipaserver/install/cainstance.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/ipaserver/install/cainstance.py b/ipaserver/install/cainstance.py
index 47183bb22..d2c2c70e5 100644
--- a/ipaserver/install/cainstance.py
+++ b/ipaserver/install/cainstance.py
@@ -518,6 +518,18 @@ class CAInstance(service.Service):
pent = pwd.getpwnam(self.pki_user)
os.chown('/var/lib/pki-ca/conf/CS.cfg', pent.pw_uid, pent.pw_gid )
+ # Update the servlet mapping to so we use the agent interface rather
+ # than the end-user interface. The agent interface always requires
+ # client auth which lets us work work around the NSS change which
+ # disallows renegotation (CVE-2009-3555)
+ #
+ # The spaces here, while ugly, are required because update_file()
+ # escapes the incoming string.
+ installutils.update_file('/var/lib/%s/webapps/ca/WEB-INF/web.xml' % PKI_INSTANCE_NAME,
+ ' <url-pattern> /ee/ca/profileSubmitSSLClient </url-pattern>',
+ ' <url-pattern> /agent/ca/profileSubmitSSLClient </url-pattern>'
+)
+
logging.debug("restarting ca instance")
try:
self.restart()