Passing in the HSM configuration options via an override file will result in a successful, but incomplete installation.
The token name is stored within IPA but the token library path is not. Trying to override with the command-line with --token-library-path does not work.
An ldapmodify would be necessary to add the missing token library path.
I reproduced with this override.txt
[CA] pki_hsm_enable = True pki_hsm_libfile = /usr/lib64/pkcs11/libsofthsm2.so pki_hsm_modulename = libsofthsm2 pki_token_name = ipa_token pki_token_password = Secret123
The entry dn: cn=ipa,cn=cas,cn=ca,dc=example,dc=test will contain ipaCaHSMConfiguration: ipa_token;None
ipaCaHSMConfiguration: ipa_token;None
All IPA versions with HSM support
https://github.com/freeipa/freeipa/pull/7833
Fixed upstream: master:
ipa-4-12:
Metadata Update from @frenaud: - Issue close_status updated to: fixed - Issue status updated to: Closed (was: Open)