3d01ec1 Allow full customisability of IPA CA subject DN

13 files Authored by ftweedal 7 years ago, Committed by jcholast 7 years ago,
    Allow full customisability of IPA CA subject DN
    
    Currently only the "subject base" of the IPA CA subject DN can be
    customised, via the installer's --subject-base option.  The RDN
    "CN=Certificate Authority" is appended to form the subject DN, and
    this composition is widely assumed.
    
    Some administrators need more control over the CA subject DN,
    especially to satisfy expectations of external CAs when the IPA CA
    is to be externally signed.
    
    This patch adds full customisability of the CA subject DN.
    Specifically:
    
    - Add the --ca-subject option for specifying the full IPA CA subject
      DN.  Defaults to "CN=Certificate Authority, O=$SUBJECT_BASE".
    
    - ipa-ca-install, when installing a CA in a previous CA-less
      topology, updates DS certmap.conf with the new new CA subject DN.
    
    - DsInstance.find_subject_base no longer looks in certmap.conf,
      because the CA subject DN can be unrelated to the subject base.
    
    Fixes: https://fedorahosted.org/freeipa/ticket/2614
    Reviewed-By: Jan Cholasta <jcholast@redhat.com>
    
        
file modified
+17 -1
file modified
+85 -38
file modified
+14 -6
file modified
+32 -35