我有带有 SSL 的 Azure 应用服务。
移动应用程序(Xamarin android、ios)通过 MobileServiceClient 使用服务 API。
MobileServiceClient
中没有用于添加证书的选项。
我用谷歌搜索了它,但没有找到一个文档来解决这个问题。
如何使用 MobileServiceClient 实现 SSL 固定?
最佳答案
正如您提到的,似乎不支持在 MobileServiceClient 中添加证书。
如果我们尝试这样做,根据我的理解,我们需要覆盖服务器端身份验证流程。更详细请引用这个tutorial 。我还找到了另一个SO thread与此相关。 我们还需要重写客户端的 DelegatingHandler。
此外,这里还有一些有用的教程:
Code sample AzureWebApiClientCertAuthSample
Azure App Service and Client Certificate Authentication
此外,我们还可以给我们的feedback Azure 应用团队。
关于azure - 如何使用 MobileServiceClient(Xamarin 移动应用程序)和使用 SSL 作为后端服务的 Azure 应用服务实现 SSL 固定?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44843468/