/[smeserver]/rpms/e-smith-base/sme10/e-smith-base-5.8.0-bz11252-validate-certfiles-exists.patch
ViewVC logotype

Annotation of /rpms/e-smith-base/sme10/e-smith-base-5.8.0-bz11252-validate-certfiles-exists.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.3 - (hide annotations) (download)
Sun Jun 6 20:38:30 2021 UTC (3 years, 5 months ago) by jpp
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +0 -0 lines
FILE REMOVED
5.8.1

1 jpp 1.1 diff -Nur e-smith-base-5.8.0.old/root/etc/e-smith/templates/home/e-smith/ssl.pem/10openssl e-smith-base-5.8.0/root/etc/e-smith/templates/home/e-smith/ssl.pem/10openssl
2     --- e-smith-base-5.8.0.old/root/etc/e-smith/templates/home/e-smith/ssl.pem/10openssl 2020-12-11 13:01:18.492000000 -0500
3     +++ e-smith-base-5.8.0/root/etc/e-smith/templates/home/e-smith/ssl.pem/10openssl 2020-12-11 13:44:42.845000000 -0500
4     @@ -3,7 +3,7 @@
5     # if key is defined, we do not need to geenrate a self signed certificate
6     # so we do not need to expand openssl.conf
7     my $key = $modSSL{'key'};
8     - unless ($key)
9 jpp 1.2 + unless ($key and -e $key)
10 jpp 1.1 {
11     use esmith::templates;
12     esmith::templates::processTemplate({
13     diff -Nur e-smith-base-5.8.0.old/root/etc/e-smith/templates/home/e-smith/ssl.pem/20key e-smith-base-5.8.0/root/etc/e-smith/templates/home/e-smith/ssl.pem/20key
14     --- e-smith-base-5.8.0.old/root/etc/e-smith/templates/home/e-smith/ssl.pem/20key 2005-11-20 23:28:09.000000000 -0500
15     +++ e-smith-base-5.8.0/root/etc/e-smith/templates/home/e-smith/ssl.pem/20key 2020-12-11 13:44:56.268000000 -0500
16     @@ -4,7 +4,7 @@
17     $OUT = '';
18    
19     my $key = $modSSL{'key'};
20     - unless ($key)
21 jpp 1.2 + unless ($key and -e $key)
22 jpp 1.1 {
23     $key = "/home/e-smith/ssl.key/$hostname.$domain.key";
24     use esmith::templates;
25     diff -Nur e-smith-base-5.8.0.old/root/etc/e-smith/templates/home/e-smith/ssl.pem/40crt e-smith-base-5.8.0/root/etc/e-smith/templates/home/e-smith/ssl.pem/40crt
26     --- e-smith-base-5.8.0.old/root/etc/e-smith/templates/home/e-smith/ssl.pem/40crt 2005-11-20 23:28:09.000000000 -0500
27     +++ e-smith-base-5.8.0/root/etc/e-smith/templates/home/e-smith/ssl.pem/40crt 2020-12-11 13:45:10.138000000 -0500
28     @@ -3,7 +3,7 @@
29     my $hostname = $SystemName || "localhost";
30    
31     my $crt = $modSSL{'crt'};
32     - unless ($crt)
33 jpp 1.2 + unless ($crt and -e $crt)
34 jpp 1.1 {
35     $crt = "/home/e-smith/ssl.crt/$hostname.$domain.crt";
36     use esmith::templates;
37     diff -Nur e-smith-base-5.8.0.old/root/etc/e-smith/templates/home/e-smith/ssl.pem/60pem e-smith-base-5.8.0/root/etc/e-smith/templates/home/e-smith/ssl.pem/60pem
38     --- e-smith-base-5.8.0.old/root/etc/e-smith/templates/home/e-smith/ssl.pem/60pem 2014-03-23 22:47:24.000000000 -0400
39     +++ e-smith-base-5.8.0/root/etc/e-smith/templates/home/e-smith/ssl.pem/60pem 2020-12-11 13:45:20.521000000 -0500
40     @@ -1,6 +1,6 @@
41     {
42     my $pem = $modSSL{'CertificateChainFile'};
43     - if ($pem)
44 jpp 1.2 + if ($pem and -e $pem)
45 jpp 1.1 {
46     open(PEM, $pem) or warn "Intermediate Certificate File defined, but cannot open $pem : $!";
47     my @pem = <PEM>;

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed