[icinga-checkins] icinga.org: icinga2/master: Implement SNI support for the CLI commands

git at icinga.org git at icinga.org
Tue May 17 11:44:09 CEST 2016


Module: icinga2
Branch: master
Commit: 4558488d97084453c8548d7e9d5112f03708d5da
URL:    https://git.icinga.org/?p=icinga2.git;a=commit;h=4558488d97084453c8548d7e9d5112f03708d5da

Author: Gunnar Beutner <gunnar.beutner at netways.de>
Date:   Thu Apr 21 15:44:51 2016 +0200

Implement SNI support for the CLI commands

fixes #11651

---

 lib/cli/pkiutility.cpp |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/cli/pkiutility.cpp b/lib/cli/pkiutility.cpp
index e80455b..ea893e2 100644
--- a/lib/cli/pkiutility.cpp
+++ b/lib/cli/pkiutility.cpp
@@ -137,7 +137,7 @@ boost::shared_ptr<X509> PkiUtility::FetchCert(const String& host, const String&
 		return boost::shared_ptr<X509>();
 	}
 
-	TlsStream::Ptr stream = new TlsStream(client, String(), RoleClient, sslContext);
+	TlsStream::Ptr stream = new TlsStream(client, host, RoleClient, sslContext);
 
 	try {
 		stream->Handshake();
@@ -201,7 +201,7 @@ int PkiUtility::RequestCertificate(const String& host, const String& port, const
 		return 1;
 	}
 
-	TlsStream::Ptr stream = new TlsStream(client, String(), RoleClient, sslContext);
+	TlsStream::Ptr stream = new TlsStream(client, host, RoleClient, sslContext);
 
 	try {
 		stream->Handshake();



More information about the icinga-checkins mailing list