简体   繁体   English

Xamarin - 分发证书显示“不在钥匙串中”

[英]Xamarin - distribution certificate shows “Not in keychain”

Xamarin is telling me my distribution certificate is "not in my keychain". Xamarin 告诉我我的分发证书“不在我的钥匙串中”。 Is this telling me the certificate isn't on my Mac keychain?这是在告诉我证书不在我的 Mac 钥匙串上吗? Or my Windows certificate store?还是我的 Windows 证书存储? How do I make the status turn "Valid"?如何使状态变为“有效”?

Here is what I can see...这是我能看到的...

Under Tools/Options I click here...在工具/选项下,我单击此处...

在此处输入图像描述

And then it shows my Distribution certificate is "Not in keychain".然后它显示我的分发证书是“不在钥匙串中”。

在此处输入图像描述

But on my Mac, the certificate is there.但是在我的 Mac 上,证书就在那里。

在此处输入图像描述

How do I make it so Visual Studio sees the certificate as Valid?如何使 Visual Studio 将证书视为有效?

Just for grins I downloaded and installed the same 2 certificates shown in the Mac keychain to my Windows certificate store, but the status remains "Not in keychain".只是为了笑,我下载并安装了 Mac 钥匙串中显示的相同 2 个证书到我的 Windows 证书存储,但状态仍然是“不在钥匙串中”。 My understanding is the certificates need to be on the Mac and not on the Windows Xamarin machine, but now I am not so sure.我的理解是证书需要在 Mac 上而不是 Windows Xamarin 机器上,但现在我不太确定。

Well they made it now by design that you have to import the certificate to Visual studio.好吧,他们现在通过设计使您必须将证书导入Visual Studio。

On your mac open the key vault, find your certificate, click on small dropdown arrow left of it to discover the private key, select both (.) certificate and private key lines then right-click and choose export, They will be saved to a p12 format (you would need to specify a simple password for it), then drop this file to your PC where you will在您的 Mac 上打开密钥库,找到您的证书,单击其左侧的小下拉箭头以发现私钥,select (.) 证书和私钥行,然后右键单击并选择导出,它们将被保存到p12 格式(您需要为其指定一个简单的密码),然后将此文件拖放到您的 PC 上

在此处输入图像描述

import the certificate.导入证书。 Then you would need to download all profiles for it.然后,您需要为其下载所有配置文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM