在Mono中添加ClientCertificate

时间:2018-09-30 18:00:35

标签: ssl xamarin xamarin.forms mono client-certificates

我正在尝试在Xamarin(运行Mono)中创建HttpRequest,但是我认为ClientCertificates未在Mono中实现。如果尝试执行此操作,则会抛出NotImplementedException。

var handler = new NativeMessageHandler();
handler.ClientCertificates.Add(certificate); //This line throws an exception

var httpClient = new HttpClient(handler);

我正在使用this库中的NativeMessageHandler。

有没有人知道解决方法?我尝试与之通信的webapi要求我使用它。任何帮助表示赞赏。

0 个答案:

没有答案