Last active
January 2, 2016 05:29
-
-
Save newyear2006/8257709 to your computer and use it in GitHub Desktop.
Nochmal der Versuch eine Beschreibung hinzuzufügen
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$conn = New-Object system.net.sockets.tcpclient($host, $port) | |
$stream = New-Object system.net.security.sslstream($conn.getstream(), $null, { | |
Write-Host $args[2].ChainElements[0].Certificate.Subject; | |
Write-Host "PolicyErrors: $($args[3])"; | |
# Immer True zurückgeben, damit alle Zertifikate auch mit Fehler akzeptiert werden. | |
$true; | |
}) | |
$result = $stream.authenticateasclient("chocolatey.org") | |
$conn.Close() |
Wichtig
_Noch wichtiger_
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Wo ist die Beschreibung abgeblieben?