httpinstance: add ipa-ca.$DOMAIN alias in initial request

For detailed discussion on the purpose of this change and the design
decisions made, see `git log -1 $THIS_COMMIT~2`.

For new server/replica installation, issue the HTTP server
certificate with the 'ipa-ca.$DOMAIN' SAN dNSName.  This is
accomplished by adding the name to the Certmonger tracking request.

Part of: https://pagure.io/freeipa/issue/8186

Reviewed-By: Rob Crittenden <rcritten@redhat.com>
This commit is contained in:
Fraser Tweedale committed 2020-03-25 11:13:03 +11:00
1 parent f7c45641fe
commit 4d5b5a9024
1 file changed
+1 -1
+1 -1
View File
@@ -381,7 +381,7 @@ class HTTPInstance(service.Service):
subject=str(DN(('CN', self.fqdn), self.subject_base)),
ca='IPA',
profile=dogtag.DEFAULT_PROFILE,
dns=[self.fqdn],
dns=[self.fqdn, f'{IPA_CA_RECORD}.{api.env.domain}'],
post_command='restart_httpd',
storage='FILE',
passwd_fname=key_passwd_file,