You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by jp...@apache.org on 2012/07/19 04:51:28 UTC
git commit: TS-1363: Cert path not working using intermdiate
certificate
Updated Branches:
refs/heads/master 682c4e393 -> 4ed023427
TS-1363: Cert path not working using intermdiate certificate
Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/4ed02342
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/4ed02342
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/4ed02342
Branch: refs/heads/master
Commit: 4ed023427a90c0d2bfa9c0c9dab26304f9aaf9fb
Parents: 682c4e3
Author: James Peach <jp...@apache.org>
Authored: Wed Jul 18 19:51:02 2012 -0700
Committer: James Peach <jp...@apache.org>
Committed: Wed Jul 18 19:51:07 2012 -0700
----------------------------------------------------------------------
CHANGES | 2 ++
iocore/net/SSLNetProcessor.cc | 10 ++++++++++
2 files changed, 12 insertions(+), 0 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/trafficserver/blob/4ed02342/CHANGES
----------------------------------------------------------------------
diff --git a/CHANGES b/CHANGES
index 53ec988..ef84798 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,5 +1,7 @@
-*- coding: utf-8 -*-
Changes with Apache Traffic Server 3.3.0
+ *) [TS-1363] Cert path not working using intermdiate certificate
+
*) [TS-895] Added version checks for bison and flex.
*) [TS-1331] Wrong regex for ip in records config. Authors:
http://git-wip-us.apache.org/repos/asf/trafficserver/blob/4ed02342/iocore/net/SSLNetProcessor.cc
----------------------------------------------------------------------
diff --git a/iocore/net/SSLNetProcessor.cc b/iocore/net/SSLNetProcessor.cc
index a52cb0b..034408c 100644
--- a/iocore/net/SSLNetProcessor.cc
+++ b/iocore/net/SSLNetProcessor.cc
@@ -274,6 +274,16 @@ SSLNetProcessor::initSSLServerCTX(SSL_CTX * lCtx, const SslConfigParams * param,
}
ats_free(completeServerCertPath);
+ if (param->serverCertChainPath) {
+ char *completeServerCaCertPath = Layout::relative_to(param->getServerCACertPathOnly(), param->serverCertChainPath);
+ if (SSL_CTX_add_extra_chain_cert_file(lCtx, param->serverCertChainPath) <= 0) {
+ Error ("SSL ERROR: Cannot use server certificate chain file: %s", completeServerCaCertPath);
+ ats_free(completeServerCaCertPath);
+ return -2;
+ }
+ ats_free(completeServerCaCertPath);
+ }
+
if (!SSL_CTX_check_private_key(lCtx)) {
logSSLError("Server private key does not match the certificate public key");
return -4;