Bug 183151

Summary: [PATCH] script to generate self-signed certificates does not work
Product: [Fedora] Fedora Reporter: Mark Sobell <mark>
Component: dovecotAssignee: Tomas Janousek <tjanouse>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 5CC: cpaul, dcantrell, matthias, michael, tss, wtogami
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-12-27 08:54:34 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:
Bug Depends On:    
Bug Blocks: 150224    
Attachments:
Description Flags
shows the errors in two cases of the problem none

Description Mark Sobell 2006-02-27 00:47:02 UTC
Description of problem:
The script at
/usr/share/doc/dovecot-1.0/examples/mkcert.sh
generates errors.

Version-Release number of selected component (if applicable):


How reproducible:
always

Steps to Reproduce:
1.sh /usr/share/doc/dovecot-1.0/examples/mkcert.sh
2.
3.
  
Actual results:
Various, depending on whether you set SSLDIR and which working directory you run
it from. See attached file.

I works properly if you set SSLDIR and cd to the proper directory:

# export SSLDIR=/etc/pki/dovecot
# cd /etc/pki/dovecot


Expected results:
Should run without errors when run without setting SSLDIR and when run from any
location.

Additional info:

Comment 1 Mark Sobell 2006-02-27 00:47:02 UTC
Created attachment 125291 [details]
shows the errors in two cases of the problem

Comment 2 Chris Langlands 2006-09-15 05:11:41 UTC
the following seems to be all that's needed


--- /usr/share/doc/dovecot-1.0/examples/mkcert.sh.orig  2006-09-15
09:11:40.000000000 +0800
+++ /usr/share/doc/dovecot-1.0/examples/mkcert.sh       2006-09-15
09:28:22.000000000 +0800
@@ -4,8 +4,8 @@
 # Edit dovecot-openssl.cnf before running this.

 OPENSSL=${OPENSSL-openssl}
-SSLDIR=${SSLDIR-/etc/ssl}
-OPENSSLCONFIG=${OPENSSLCONFIG-dovecot-openssl.cnf}
+SSLDIR=${SSLDIR-/etc/pki/dovecot}
+OPENSSLCONFIG=${OPENSSLCONFIG-/etc/pki/dovecot/dovecot-openssl.cnf}

 CERTFILE=$SSLDIR/certs/dovecot.pem
 KEYFILE=$SSLDIR/private/dovecot.pem


Comment 3 Matthias Saou 2006-09-28 14:31:30 UTC
Ping? Petr, you seem to have updated to 1.0rc7 a few days ago. This quick patch
would have been a welcome change, as it fixes this issue and would allow to
close this FC6Blocker bug.

Comment 5 Petr Rockai 2006-10-04 10:45:05 UTC
Sorry, i must have overlooked this. I have no idea why it is a blocker though, 
it is just a documentation issue -- the script is installed 
under /usr/share/doc/. It does not affect functionality of the package in any 
way and self-signed certificates are generated by scriptlets anyway.

Either way, i have fixed this in CVS.

Comment 6 Tomas Janousek 2006-12-21 12:33:59 UTC
Fixed in FC-5 CVS as well, will push update soon or later.

Comment 7 Fedora Update System 2006-12-23 19:14:06 UTC
dovecot-1.0-0.beta8.3.fc5 has been pushed for fc5, which should resolve this issue.  If these problems are still present in this version, then please make note of it in this bug report.

Comment 8 Fedora Update System 2006-12-27 06:02:52 UTC
dovecot-1.0-0.beta8.3.fc5 has been pushed for fc5, which should resolve this issue.  If these problems are still present in this version, then please make note of it in this bug report.