Bug 1933349
| Summary: | ipa-cert-fix command failed exception IOError No such file or directory /etc/pki/pki-tomcat/certs/ca_ocsp_signing.crt [RHEL 7.9.z] | |||
|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Marc Sauton <msauton> | |
| Component: | pki-core | Assignee: | RHCS Maintainers <rhcs-maint> | |
| Status: | NEW --- | QA Contact: | idm-cs-qe-bugs | |
| Severity: | urgent | Docs Contact: | ||
| Priority: | urgent | |||
| Version: | 7.9 | CC: | frenaud, jabsher, mharmsen, rcritten, tmihinto, tscherf, vvanhaft, wrydberg | |
| Target Milestone: | beta | Keywords: | Triaged | |
| Target Release: | --- | |||
| Hardware: | All | |||
| OS: | Linux | |||
| Whiteboard: | ||||
| Fixed In Version: | Doc Type: | If docs needed, set a value | ||
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 2168482 (view as bug list) | Environment: | ||
| Last Closed: | Type: | Bug | ||
| Regression: | --- | Mount Type: | --- | |
| Documentation: | --- | CRM: | ||
| Verified Versions: | Category: | --- | ||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
| Cloudforms Team: | --- | Target Upstream Version: | ||
| Embargoed: | ||||
| Bug Depends On: | ||||
| Bug Blocks: | 2168482 | |||
|
Description
Marc Sauton
2021-02-26 19:03:43 UTC
(In reply to Marc Sauton from comment #0) > I may have missed something, could not locate what is populating the > /etc/pki/pki-tomcat/certs/{}.crt the logic behind, nor find out why the .crt > are missing > I seem to only see in ./freeipa-4.6.8/ipaserver/install/ipa_cert_fix.py , > use like: > cert = x509.load_certificate_from_file(cert_path) > cert_path = "/etc/pki/pki-tomcat/certs/{}-renewed.crt" \ > > and copy and install of the cert file, not many traces of the .crt files. > Hi Marc, ipa-cert-fix is working as follows: 1. it gathers a list of expired certs that need to be renewed. The list can contain pki system certificates as well as the RA cert, HTTP, LDAP or KDC cert. 2. it calls "pki-server cert-fix" with the list of certs (--cert for the pki system certificates, --extra-cert for the other ones) 3. pki-server cert-fix renews the certs, and writes the new certs in /etc/pki/pki-tomcat/certs/xxx 4. ipa-cert-fix takes the new certs from their file location and puts them in the appropriate database. Here pki-server cert-fix exits on error (this needs to be investigated) but ipa-cert-fix does not properly process the return code =1 (this is a known issue, https://bugzilla.redhat.com/show_bug.cgi?id=1779984). I'm moving this issue to pki as the initial issue is pki-server cert-fix failing to renew the subsystem cert. |