Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ipaserver] Role does not handle company-signed LDAPS and HTTPS services #1249

Open
EmptyByte opened this issue Jun 21, 2024 · 0 comments
Open

Comments

@EmptyByte
Copy link

EmptyByte commented Jun 21, 2024

It would be useful if the Role to setup IPA Server includes the following tasks:

More info on Florence's article: Demystifying the Certificate Authority Component in FreeIPA

    - name: Add our Root CA as known CA
      ansible.builtin.command:
        cmd: >-
          ipa-cacert-manage
          -p "{{ ipadm_password | quote }}"
          -t CT,,
          install "{{ cert_root_ca_path | quote }}"
      no_log: true
      register: ipa_cacert_manage_root_result

    - name: Add our Services CA as known CA
      ansible.builtin.command:
        cmd: >-
          ipa-cacert-manage
          -p "{{ ipadm_password | quote }}"
          -t CT,,
          install "{{ cert_services_ca_path | quote }}"
      no_log: true
      register: ipa_cacert_manage_services_result

    - name: Run IPA Certupdate
      ansible.builtin.command: ipa-certupdate
      when: ipa_cacert_manage_root_result.changed or ipa_cacert_manage_services_result.changed

    - name: Add our LDAPS and HTTPS signed certificates
      ansible.builtin.command:
        cmd: >-
          ipa-server-certinstall
          -p "{{ ipadm_password | quote }}"
          -w -d
          {{ key_dirsrv_http_server_path | quote }}
          {{ cert_dirsrv_http_server_path | quote }}
          {{ cert_services_ca_path | quote }}
          {{ cert_root_ca_path | quote }}
          --pin={{ dirsrv_http_server_pin | d("''") | quote }}
      no_log: true
      notify: Restart IPA
@EmptyByte EmptyByte changed the title Role to setup smartcards lacking Role to setup IPA server does not handle company-signed LDAPS and HTTPS services Jun 22, 2024
@EmptyByte EmptyByte changed the title Role to setup IPA server does not handle company-signed LDAPS and HTTPS services [ipaserver] Role to setup IPA server does not handle company-signed LDAPS and HTTPS services Jun 22, 2024
@EmptyByte EmptyByte changed the title [ipaserver] Role to setup IPA server does not handle company-signed LDAPS and HTTPS services [ipaserver] Role does not handle company-signed LDAPS and HTTPS services Jun 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant