Bug 461523
Summary: | CA creation fails | ||||||
---|---|---|---|---|---|---|---|
Product: | [Retired] freeIPA | Reporter: | Rob Crittenden <rcritten> | ||||
Component: | ipa-server | Assignee: | Rob Crittenden <rcritten> | ||||
Status: | CLOSED UPSTREAM | QA Contact: | Chandrasekar Kannan <ckannan> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 1.2 | CC: | benl, dpal, jeff.raber, jgalipea, rmeggins, rvokal, ssorce | ||||
Target Milestone: | --- | Keywords: | Reopened | ||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2012-03-28 09:29:02 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Rob Crittenden
2008-09-08 20:24:48 UTC
Adding -2 to the certutil -S will not fix the original problem, which is that I was running ipa-server-install as root from an NFS mount - for some reason certutil attempts to write to $PWD, which fails with EACCES (13). In order to automate CA cert creation with the -2 argument, you have to provide 3 additional args on stdin: #> certutil -S -n "CA certificate" -s "cn=CAcert" -x -t "CT,," -m 1000 -v 120 -d $secdir \ -z $secdir/noise.txt -f $secdir/pwdfile.txt -2 Is this a CA certificate [y/N]? y Enter the path length constraint, enter to skip [<0 for unlimited path]: Is this a critical extension [y/N]? y so ( echo y; echo; echo y ) | certutil -S ..... -2 This message is a reminder that Fedora 9 is nearing its end of life. Approximately 30 (thirty) days from now Fedora will stop maintaining and issuing updates for Fedora 9. 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 WONTFIX if it remains open with a Fedora 'version' of '9'. 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 prior to Fedora 9's end of life. Bug Reporter: Thank you for reporting this issue and we are sorry that we may not be able to fix it before Fedora 9 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 please change the 'version' of this bug to the applicable version. If you are unable to change the version, please add a comment here and someone will do it for you. 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. The process we are following is described here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping Created attachment 388667 [details]
handle
The root cause of this problem is that certutil wants to write a file to the cwd when generating a key so we need to be some place writable.
So don't assume that cwd exists or is writable. I had worked on this previously so that we change to a known writable directory when issuing server certs. Enhance that so we change to the NSS db dir when issuing the self-signed CA.
Also handle the case where cwd is an invalid directory. I tested this with:
term 1: mkdir foo
cd foo
term 2: rmdir foo
term 1: ipa-server-install ...
Probably not a major issue but not hard to more carefully handle it either. The installation will still fail but at least we have a good message when it does.
I tested the non-writable directory by creating a small filesystem:
# dd if=/dev/zero of=/root/partition bs=65535 count=10
# mke2fs /root/partition (say yes that it is isn't a block system)
# mount -o ro,loop /root/partition /mnt
# cd /mnt
# ipa-server-install
This message is a reminder that Fedora 11 is nearing its end of life. Approximately 30 (thirty) days from now Fedora will stop maintaining and issuing updates for Fedora 11. 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 WONTFIX if it remains open with a Fedora 'version' of '11'. 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 prior to Fedora 11's end of life. Bug Reporter: Thank you for reporting this issue and we are sorry that we may not be able to fix it before Fedora 11 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 please change the 'version' of this bug to the applicable version. If you are unable to change the version, please add a comment here and someone will do it for you. 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. The process we are following is described here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping Fedora 11 changed to end-of-life (EOL) status on 2010-06-25. Fedora 11 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. Thank you for reporting this bug and we are sorry it could not be fixed. In an unrelated change IPA now tests to be sure that the cwd is sane. This should address this problem. Package Maintainer: I see that you reopened this bug. Unfortunately the 'version' is set to 11 and F11 is EOL. Please change the 'version' to >11. changing product to freeipa |