Visual Basic (Usage) | ![]() |
---|---|
Dim certificate As X509Certificate2 Dim endpointUrl As Uri Dim value As Boolean value = Utils.DoesUrlMatchCertificate(certificate, endpointUrl) |
C# | |
---|---|
public static bool DoesUrlMatchCertificate( X509Certificate2 certificate, Uri endpointUrl ) |
Parameters
- certificate
- The certificate.
- endpointUrl
- The endpoint url to verify.
Return Value
True if the certificate matches the url.Target Platforms: Windows 7/8/10, Windows Server 2003/2008/2012/2015, .NET4.x