7 |
--- e-smith-proftpd-2.6.0.old/root/etc/e-smith/db/configuration/defaults/ftp/TLSRequired 1969-12-31 19:00:00.000000000 -0500 |
--- e-smith-proftpd-2.6.0.old/root/etc/e-smith/db/configuration/defaults/ftp/TLSRequired 1969-12-31 19:00:00.000000000 -0500 |
8 |
+++ e-smith-proftpd-2.6.0/root/etc/e-smith/db/configuration/defaults/ftp/TLSRequired 2016-06-17 11:01:16.668000000 -0400 |
+++ e-smith-proftpd-2.6.0/root/etc/e-smith/db/configuration/defaults/ftp/TLSRequired 2016-06-17 11:01:16.668000000 -0400 |
9 |
@@ -0,0 +1 @@ |
@@ -0,0 +1 @@ |
10 |
+off |
+on |
11 |
diff -Nur e-smith-proftpd-2.6.0.old/root/etc/e-smith/db/configuration/defaults/ftp/TLSVerifyClient e-smith-proftpd-2.6.0/root/etc/e-smith/db/configuration/defaults/ftp/TLSVerifyClient |
diff -Nur e-smith-proftpd-2.6.0.old/root/etc/e-smith/db/configuration/defaults/ftp/TLSVerifyClient e-smith-proftpd-2.6.0/root/etc/e-smith/db/configuration/defaults/ftp/TLSVerifyClient |
12 |
--- e-smith-proftpd-2.6.0.old/root/etc/e-smith/db/configuration/defaults/ftp/TLSVerifyClient 1969-12-31 19:00:00.000000000 -0500 |
--- e-smith-proftpd-2.6.0.old/root/etc/e-smith/db/configuration/defaults/ftp/TLSVerifyClient 1969-12-31 19:00:00.000000000 -0500 |
13 |
+++ e-smith-proftpd-2.6.0/root/etc/e-smith/db/configuration/defaults/ftp/TLSVerifyClient 2016-06-17 11:01:16.668000000 -0400 |
+++ e-smith-proftpd-2.6.0/root/etc/e-smith/db/configuration/defaults/ftp/TLSVerifyClient 2016-06-17 11:01:16.668000000 -0400 |
19 |
@@ -0,0 +1,37 @@ |
@@ -0,0 +1,37 @@ |
20 |
+{ |
+{ |
21 |
+ #check if TLS is enabled |
+ #check if TLS is enabled |
22 |
+ if (($ftp{TLSEnable} || 'yes') eq 'yes') { |
+ if (($ftp{TLSEnable} || 'on') eq 'on') { |
23 |
+ |
+ |
24 |
+ #check if TLS is required: values "on", "off" |
+ #check if TLS is required: values "on", "off" |
25 |
+ #if "on" normal ftp connections are dropped |
+ #if "on" normal ftp connections are dropped |
26 |
+ my $tlsrequired = $ftp{'TLSRequired'} || "off"; |
+ my $tlsrequired = $ftp{'TLSRequired'} || "on"; |
27 |
+ my $tlsclient = $ftp{'TLSVerifyClient'} || "off"; |
+ my $tlsclient = $ftp{'TLSVerifyClient'} || "off"; |
28 |
+ #use the same crt and key of httpd |
+ #use the same crt and key of httpd |
29 |
+ my $crt = $modSSL{'crt'} || |
+ my $crt = $modSSL{'crt'} || |
34 |
+ my $chain_file = $modSSL{CertificateChainFile} || |
+ my $chain_file = $modSSL{CertificateChainFile} || |
35 |
+ "# no chain cert"; |
+ "# no chain cert"; |
36 |
+ |
+ |
37 |
+ $chain_file = ( $chain_file eq "# no chain cert" )? $chain_file : "TLSCertificateChainFile $chain_file" |
+ $chain_file = ( $chain_file eq "# no chain cert" )? $chain_file : "TLSCertificateChainFile $chain_file"; |
38 |
+ |
+ |
39 |
+ $OUT .= <<SSL_END; |
+ $OUT .= <<SSL_END; |
40 |
+ |
+ |