2014-06-20 6 views
3

웹 서비스 작업중인 xamarin 앱에서 작업하고 있습니다.Xamarin. X509Certificate 및 ClientBase

Xamarin은 System.ServiceModel.ClientBase의 X509Certificate를 지원합니까?

public void Initialize() 
    { 
     var binding = new BasicHttpBinding(BasicHttpSecurityMode.Transport); 
     binding.Security.Transport.ClientCredentialType = HttpClientCredentialType.Certificate; 

     var endpoint = new EndpointAddress("https://ThereIsMyServerAddress/PathToService"); 

     _mobileService = new ServiceClient(binding, endpoint); 

     _mobileService.ClientCredentials.ClientCertificate.Certificate = new X509Certificate2("Ivanov_Ivan_Ivanovich.cer"); 

    } 

을하지만 자 마린은 ClientCredentials에 ClientCertificate.Certificate 표시되지 않습니다 프로젝트에서 작업

다음 코드는 닷넷 4.5 사례.

ServiceClient에 인증서를 추가하는 방법이 있습니까?

+0

이 인증서를 사용하는 것이 중요합니다를 참조하십시오 그것은하지 PCL을 통해 종속성으로 수행 될 수있다? 당신은 그것을 무시할 수 있습니다. –

답변