Skip to content

Instantly share code, notes, and snippets.

@newyear2006
Last active January 2, 2016 05:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save newyear2006/8257709 to your computer and use it in GitHub Desktop.
Save newyear2006/8257709 to your computer and use it in GitHub Desktop.
Nochmal der Versuch eine Beschreibung hinzuzufügen
$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()
@newyear2006
Copy link
Author

Wo ist die Beschreibung abgeblieben?

@newyear2006
Copy link
Author

Wichtig

_Noch wichtiger_

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment