Description of problem: I was attempting to update my IPA (web) server's certificate with: ipa-server-certinstall -v -w new-cert.pem but I keep getting: ipa: DEBUG: Starting external process ipa: DEBUG: args=/usr/bin/certutil -d /etc/httpd/alias -D -n 'skipper.cb.ettle' ipa: DEBUG: Process finished, return code=255 ipa: DEBUG: stdout= ipa: DEBUG: stderr=certutil: could not find certificate named "'skipper.cb.ettle'": SEC_ERROR_BAD_DATABASE: security library: bad database. ipa.ipaserver.install.ipa_server_certinstall.ServerCertInstall: DEBUG: File "/usr/lib/python2.7/site-packages/ipapython/admintool.py", line 172, in execute return_value = self.run() File "/usr/lib/python2.7/site-packages/ipaserver/install/ipa_server_certinstall.py", line 113, in run self.install_http_cert() File "/usr/lib/python2.7/site-packages/ipaserver/install/ipa_server_certinstall.py", line 145, in install_http_cert 'restart_httpd') File "/usr/lib/python2.7/site-packages/ipaserver/install/ipa_server_certinstall.py", line 211, in import_cert cdb.delete_cert(old_cert) File "/usr/lib/python2.7/site-packages/ipaserver/install/certs.py", line 493, in delete_cert self.nssdb.delete_cert(nickname) File "/usr/lib/python2.7/site-packages/ipapython/certdb.py", line 487, in delete_cert self.run_certutil(["-D", "-n", nick]) File "/usr/lib/python2.7/site-packages/ipapython/certdb.py", line 142, in run_certutil return ipautil.run(new_args, stdin, **kwargs) File "/usr/lib/python2.7/site-packages/ipapython/ipautil.py", line 515, in run raise CalledProcessError(p.returncode, arg_string, str(output)) ipa.ipaserver.install.ipa_server_certinstall.ServerCertInstall: DEBUG: The ipa-server-certinstall command failed, exception: CalledProcessError: Command '/usr/bin/certutil -d /etc/httpd/alias -D -n 'skipper.cb.ettle'' returned non-zero exit status 255 ipa.ipaserver.install.ipa_server_certinstall.ServerCertInstall: ERROR: Command '/usr/bin/certutil -d /etc/httpd/alias -D -n 'skipper.cb.ettle'' returned non-zero exit status 255 ipa.ipaserver.install.ipa_server_certinstall.ServerCertInstall: ERROR: The ipa-server-certinstall command failed. This seems to be to do with the '' around the host name (skipper.cb.ettle). If I hack /usr/lib/python2.7/site-packages/ipaserver/install/ipa_server_certinstall.py in install_http_cert to strip the '', the cert seems to update OK. (Note though now when I do /usr/bin/certutil -d /etc/httpd/alias -L I see a full "E=...CN=..." nickname, so I might have inadvertently bodged up my nssdb....) Version-Release number of selected component (if applicable): freeipa-server-4.4.4-1.fc25.x86_64
Hi Jim, I think you hit https://pagure.io/freeipa/issue/6460 which was fixed in FreeIPA 4.5 that was released to Fedora Rawhide.
Any chance of a backport to 4.4?
The patch from comment#1 applies cleanly to 4.4, the backport should be easy. Upstream ticket: https://pagure.io/freeipa/issue/6991
ipa-4-4: e4363c5c26982f9126e7df16ba7a1a060cdb8721 Fix the installutils.set_directive docstring e40f9a5183fc3ebe160ea6b6ae4fb5c3190c1462 installutils: improve directive value parsing in get_directive 67c8f5fd4e50283e7680e7ded142e3234c7ab5f1 Delegate directive value quoting/unquoting to separate functions 60a05de4122a26f3a9d148b8c014668d296229fc Explicitly handle quoting/unquoting of NSSNickname directive
freeipa-4.4.4-3.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2017-7f9288e6d7
freeipa-4.4.4-4.fc25 softhsm-2.2.0-2.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2017-30c570630b
freeipa-4.4.4-4.fc25, softhsm-2.2.0-2.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-30c570630b
This message is a reminder that Fedora 25 is nearing its end of life. Approximately 4 (four) weeks from now Fedora will stop maintaining and issuing updates for Fedora 25. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '25'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 25 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete.
Fedora 25 changed to end-of-life (EOL) status on 2017-12-12. Fedora 25 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. If you are unable to reopen this bug, please file a new report against the current release. If you experience problems, please add a comment to this bug. Thank you for reporting this bug and we are sorry it could not be fixed.