iOS模拟器上的dotnet dev-certs https

时间:2019-03-18 20:06:26

标签: ssl https xamarin.forms .net-core ios-simulator

我正在开发一个Xamarin Forms应用程序,该应用程序向dotnet核心API(localhost)发出请求,但是当它尝试发出HTTPS请求时,模拟器会显示SSL异常。

我尝试安装dotnet通过以下方式生成的证书:

getWindow().getDecorView().setLayoutDirection(View.LAYOUT_DIRECTION_RTL);

但是,该证书保留为“未验证”,并且不会显示在“设置/关于/受信任的证书”上。

如何在iOS模拟器上安装dotnet证书,以使我的应用程序发出的请求可以执行API(localhost)。

enter image description here

enter image description here

0 个答案:

没有答案
相关问题