vb System.ServiceModel.Security.X509ClientCertificateAuthentication.RevocationMode类(方法)实例源码

下面列出了vb System.ServiceModel.Security.X509ClientCertificateAuthentication.RevocationMode 类(方法)源码代码实例,从而了解它的用法。

作者:VB.NET开发    项目:System.ServiceModel.Securit   
' Create a service host.
Dim httpUri As New Uri("http://localhost/Calculator")
Dim sh As New ServiceHost(GetType(Calculator), httpUri)

' Create a binding that uses a certificate.
Dim b As New WSHttpBinding(SecurityMode.Message)
b.Security.Message.ClientCredentialType = _
MessageCredentialType.Certificate

' Get a reference to the authentication object.
Dim myAuthProperties As X509ClientCertificateAuthentication = _
sh.Credentials.ClientCertificate.Authentication

' Configure ChainTrust with no revocation check.
myAuthProperties.CertificateValidationMode = _
X509CertificateValidationMode.ChainTrust
myAuthProperties.RevocationMode = X509RevocationMode.NoCheck


问题


面经


文章

微信
公众号

扫码关注公众号