You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by da...@apache.org on 2016/11/02 19:05:40 UTC
[2/4] incubator-trafficcontrol git commit: log FATAL and exit if a
SSL certificate is not found for a HTTPS enabled DS. This fixes TC-19
log FATAL and exit if a SSL certificate is not found for a HTTPS enabled DS. This fixes TC-19
Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/3a4a64f5
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/3a4a64f5
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/3a4a64f5
Branch: refs/heads/master
Commit: 3a4a64f56e5b571ab1f92aaf800440773f8d1839
Parents: 9e5a9d3
Author: Dave Neuman <ne...@apache.org>
Authored: Wed Nov 2 09:48:16 2016 -0600
Committer: Dan Kirkwood <da...@gmail.com>
Committed: Wed Nov 2 13:04:41 2016 -0600
----------------------------------------------------------------------
traffic_ops/bin/traffic_ops_ort.pl | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/3a4a64f5/traffic_ops/bin/traffic_ops_ort.pl
----------------------------------------------------------------------
diff --git a/traffic_ops/bin/traffic_ops_ort.pl b/traffic_ops/bin/traffic_ops_ort.pl
index 95f4087..da53cbb 100755
--- a/traffic_ops/bin/traffic_ops_ort.pl
+++ b/traffic_ops/bin/traffic_ops_ort.pl
@@ -2544,11 +2544,14 @@ sub adv_processing_ssl {
$cfg_file_tracker->{ $keypair->{'cert_name'} }->{'component'} = "SSL";
$cfg_file_tracker->{ $keypair->{'cert_name'} }->{'contents'} = $ssl_cert;
$cfg_file_tracker->{ $keypair->{'cert_name'} }->{'fname-in-TO'} = $keypair->{'cert_name'};
+ return 0;
}
}
+ #if no cert is found, log error and exit
+ ( $log_level >> $FATAL ) && print "FATAL SSL certificate for $remap not found!\n";
+ exit 1;
}
}
- return 0;
}
sub setup_lwp {