Implement SNI support for the CLI commands

fixes #11651
This commit is contained in:
Gunnar Beutner 2016-04-21 15:44:51 +02:00
parent 70c8bbcf99
commit 4558488d97
1 changed files with 2 additions and 2 deletions

View File

@ -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();