Aufruf eines Webservice, das über SSL und SelfSigned Certificates abgesichert ist


Imports System.Net
Imports System.Net.Security
Imports System.Security.Cryptography.X509Certificates

' Dummy function to skip validation and return OK
Public Function NoSSLValidation(ByVal sender As Object, _
ByVal certificate As X509Certificate, _
ByVal chain As X509Chain, _
ByVal sslPolicyErrors As SslPolicyErrors) As Boolean
NoSSLValidation = True
End Function

Public Function Main

' Set our dummy function as function for the validation
ServicePointManager.ServerCertificateValidationCallback = New RemoteCertificateValidationCallback(AddressOf NoSSLValidation)

End Function

OrderNDIS.vbs

Dieses kleine VBScript verändert den Registry Key HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Linkage → Bind, sodass der WAN Miniport Adapter an erster Stelle der Bindungen steht. Entstanden ist das Tool aufgrund von Verbindungs-Problemen, die einzelne Leute mit OpenVPN hatten.

Siehe auch Microsoft Knowledgebase Artikel Q311218 – Cannot Change the Binding Order for Remote Access Connections.

Download