As an admin, I want FreeIPA to sanity check the pathLenConstraints in the certificate chain when installing with (or renewing) an externally-signed CA.
See https://lists.fedoraproject.org/archives/list/freeipa-users@lists.fedorahosted.org/thread/AKXCAG2NGPWWS2IG5JDVNT76YIFXRWXM/ for description. Installation begins, and fails quite a long way through the CA component installation:
[20/28]: Configure HTTP to proxy connections [21/28]: restarting certificate server [22/28]: updating IPA configuration [23/28]: enabling CA instance [24/28]: migrating certificate profiles to LDAP [error] NetworkError: cannot connect to 'https://thisserver.domain.dev:8443/ca/rest/account/login': [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:618) ipapython.admintool: ERROR cannot connect to 'https://thisserver.domain.dev:8443/ca/rest/account/login': [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:618) ipapython.admintool: ERROR The ipa-server-install command failed. See /var/log/ipaserver-install.log for more information
The underlying error is:
Certificate path length constraint is invalid. Error code: SEC_ERROR_PATH_LEN_CONSTRAINT_INVALID␣
We should detect this issue during certificate chain validation and not allow installation to proceed.
Metadata Update from @cheimes: - Custom field on_review adjusted to https://github.com/freeipa/freeipa/pull/2989 - Issue assigned to cheimes - Issue priority set to: normal - Issue set to the milestone: FreeIPA 4.7.3
master:
ipa-4-7:
Metadata Update from @cheimes: - Issue close_status updated to: fixed - Issue status updated to: Closed (was: Open)