Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • P puppet-freeipa
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 8
    • Issues 8
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 7
    • Merge requests 7
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • AdullactAdullact
  • puppet-freeipa
  • Merge requests
  • !135

add ca_subject option

  • Review changes

  • Download
  • Email patches
  • Plain diff
Open Patrick Brideau requested to merge teluq-pbrideau/puppet-freeipa:feat/ca_subject into master Oct 12, 2022
  • Overview 4
  • Commits 2
  • Pipelines 2
  • Changes 2

As mentioned in #95 (closed), I want to be able to change the default CA Subject

openssl x509 -in /etc/ipa/ca.crt -noout -subject
subject=O = TEST.EXAMPLE.COM, CN = Certificate Authority

with this change:

$realm = 'TEST.EXAMPLE.COM'
class { 'freeipa' :
  [...]
  ca_subject => "CN=Secondary Certificate Authority,O=${realm}"
}
openssl x509 -in /etc/ipa/ca.crt -noout -subject
subject=O = TEST.EXAMPLE.COM, CN = Secondary Certificate Authority

As mentioned in the ipa-server-install --help:

    --ca-subject=CA_SUBJECT                                                                              
                        The CA certificate subject DN (default CN=Certificate                            
                        Authority,O=<realm-name>). RDNs are in LDAP order                                
                        (most specific RDN first).                                                       

There is no option --ca-subject in ipa-replica-install --help, so I guess you can’t set it, but I don’t have a setup to test it, so I do not know what is the exact behavior when creating a replica using with the --setup-ca option.

Also, the test for --ca-subject is quite hard to do for this, as it imply running openssl x509 as shown, so would only be possible to run in acceptance, and even so quite hard to run I think. Therefore I did not add any. If you think it should be done at all cost, I’m not sure how I would proceed…

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: feat/ca_subject