rpms/crypto-utils/F-11 genkey.pl,1.27,1.28

Elio Maldonado emaldonado at fedoraproject.org
Mon Oct 5 04:02:06 UTC 2009


Author: emaldonado

Update of /cvs/extras/rpms/crypto-utils/F-11
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv17779

Modified Files:
	genkey.pl 
Log Message:
- Fix to produce CSRs, certs, and key in ascii PEM format (#526720)\n
Fix cert suffix to be .crt as Apache expects it (#162116)


Index: genkey.pl
===================================================================
RCS file: /cvs/extras/rpms/crypto-utils/F-11/genkey.pl,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -p -r1.27 -r1.28
--- genkey.pl	29 Jan 2009 22:19:22 -0000	1.27
+++ genkey.pl	5 Oct 2009 04:02:06 -0000	1.28
@@ -1086,7 +1086,8 @@ sub genRequestOpenSSL
     my $args = "-c genreq ";
     $args   .= "-g $bits "; 
     $args   .= "-s $subject ";
-    $args   .= "-v $months "; 
+    $args   .= "-v $months ";
+    $args   .= "-a ";              ## using ascii
     $args   .= "-o $csrfile ";
     $args   .= "-k $keyfile "; 
     $args   .= "-e $keyEncPassword " if $keyEncPassword;
@@ -1166,6 +1167,7 @@ sub renewCertOpenSSL
     # This is a request where we reuse the existing key pair
 
     my $args = "--command genreq ";
+    $args   .= "--ascii ";              ## using ascii
     $args   .= "--renew $certfile "; 
     $args   .= "--input $keyfile "; 
     $args   .= "--cacert " if $cacert;
@@ -1521,7 +1523,7 @@ sub genCertWindow
     return "Skip" if $useca;
 
     $keyfile = $ssltop."/private/".$servername.".key";
-    $certfile = $ssltop."/certs/".$servername.".cert";
+    $certfile = $ssltop."/certs/".$servername.".crt";
     
     my $msg = "You are about to be asked to enter information that will be ".
 	"made into a self-signed certificate for your server. What you are ".




More information about the fedora-extras-commits mailing list