From 4558488d97084453c8548d7e9d5112f03708d5da Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Thu, 21 Apr 2016 15:44:51 +0200 Subject: [PATCH] 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 e80455b76..ea893e2aa 100644 --- a/lib/cli/pkiutility.cpp +++ b/lib/cli/pkiutility.cpp @@ -137,7 +137,7 @@ boost::shared_ptr PkiUtility::FetchCert(const String& host, const String& return boost::shared_ptr(); } - 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();