diff options
author | Rob Crittenden <rcritten@redhat.com> | 2012-07-11 15:51:01 -0400 |
---|---|---|
committer | Martin Kosek <mkosek@redhat.com> | 2012-07-30 13:39:08 +0200 |
commit | 03837bfd6dbf7fd1eaa437da22807d7061b99af7 (patch) | |
tree | 746a0d63ca10adeb72b792e2557c6a918181bb96 /install/updates | |
parent | e345ad12eb05e53246c2eca54616f9001765c291 (diff) | |
download | freeipa-03837bfd6dbf7fd1eaa437da22807d7061b99af7.tar.gz freeipa-03837bfd6dbf7fd1eaa437da22807d7061b99af7.tar.xz freeipa-03837bfd6dbf7fd1eaa437da22807d7061b99af7.zip |
Use certmonger to renew CA subsystem certificates
Certificate renewal can be done only one one CA as the certificates need
to be shared amongst them. certmonger has been trained to communicate
directly with dogtag to perform the renewals. The initial CA installation
is the defacto certificate renewal master.
A copy of the certificate is stored in the IPA LDAP tree in
cn=ca_renewal,cn=ipa,cn=etc,$SUFFIX, the rdn being the nickname of the
certificate, when a certificate is renewed. Only the most current
certificate is stored. It is valid to have no certificates there, it means
that no renewals have taken place.
The clones are configured with a new certmonger CA type that polls this
location in the IPA tree looking for an updated certificate. If one is
not found then certmonger is put into the CA_WORKING state and will poll
every 8 hours until an updated certificate is available.
The RA agent certificate, ipaCert in /etc/httpd/alias, is a special case.
When this certificate is updated we also need to update its entry in
the dogtag tree, adding the updated certificate and telling dogtag which
certificate to use. This is the certificate that lets IPA issue
certificates.
On upgrades we check to see if the certificate tracking is already in
place. If not then we need to determine if this is the master that will
do the renewals or not. This decision is made based on whether it was
the first master installed. It is concievable that this master is no
longer available meaning that none are actually tracking renewal. We
will need to document this.
https://fedorahosted.org/freeipa/ticket/2803
Diffstat (limited to 'install/updates')
-rw-r--r-- | install/updates/21-ca_renewal_container.update | 8 | ||||
-rw-r--r-- | install/updates/40-delegation.update | 4 | ||||
-rw-r--r-- | install/updates/Makefile.am | 1 |
3 files changed, 13 insertions, 0 deletions
diff --git a/install/updates/21-ca_renewal_container.update b/install/updates/21-ca_renewal_container.update new file mode 100644 index 000000000..50b92d73d --- /dev/null +++ b/install/updates/21-ca_renewal_container.update @@ -0,0 +1,8 @@ +# +# Add CA renewal container if not available +# + +dn: cn=ca_renewal,cn=ipa,cn=etc,$SUFFIX +add:objectClass: top +add:objectClass: nsContainer +add:cn: ca_renewal diff --git a/install/updates/40-delegation.update b/install/updates/40-delegation.update index de112d99d..1e512d0f7 100644 --- a/install/updates/40-delegation.update +++ b/install/updates/40-delegation.update @@ -356,3 +356,7 @@ replace:aci:'(target = "ldap:///uid=*,cn=users,cn=accounts,$SUFFIX")(targetattr # Don't allow the default 'manage group membership' to be able to manage the # admins group replace:aci:'(targetattr = "member")(target = "ldap:///cn=*,cn=groups,cn=accounts,$SUFFIX")(version 3.0;acl "permission:Modify Group membership";allow (write) groupdn = "ldap:///cn=Modify Group membership,cn=permissions,cn=pbac,$SUFFIX";)::(targetfilter = "(!(cn=admins))")(targetattr = "member")(target = "ldap:///cn=*,cn=groups,cn=accounts,$SUFFIX")(version 3.0;acl "permission:Modify Group membership";allow (write) groupdn = "ldap:///cn=Modify Group membership,cn=permissions,cn=pbac,$SUFFIX";)' + +dn: cn=ipa,cn=etc,$SUFFIX +add:aci:'(target = "ldap:///cn=*,cn=ca_renewal,cn=ipa,cn=etc,$SUFFIX")(version 3.0; acl "Add CA Certificates for renewals"; allow(add) userdn = "ldap:///fqdn=$FQDN,cn=computers,cn=accounts,$SUFFIX";)' +add:aci:'(target = "ldap:///cn=*,cn=ca_renewal,cn=ipa,cn=etc,$SUFFIX")(targetattr = "userCertificate")(version 3.0; acl "Modify CA Certificates for renewals"; allow(write) userdn = "ldap:///fqdn=$FQDN,cn=computers,cn=accounts,$SUFFIX";)' diff --git a/install/updates/Makefile.am b/install/updates/Makefile.am index e45690f14..bc7945d7a 100644 --- a/install/updates/Makefile.am +++ b/install/updates/Makefile.am @@ -22,6 +22,7 @@ app_DATA = \ 20-user_private_groups.update \ 20-winsync_index.update \ 21-replicas_container.update \ + 21-ca_renewal_container.update \ 30-s4u2proxy.update \ 40-delegation.update \ 40-dns.update \ |