mac 访问钥匙串中创建系统证书失败 未知错误的解决方案

If you cannot store the certificate in the System keychain, create it in the login keychain, then exported it. You can then import it into the System keychain.
Using the contextual menu for the certificate, select Get Info, open the Trust item, and set Code Signing to Always Trust.
Finally, quit Keychain Access application to refresh the certificate store.

官方是这样说的,

你先设为登录,然后再导到系统中去。

先按照步骤,一直继续(设置为登录的)。

选择导出:
在这里插入图片描述

导出。
在这里插入图片描述
选择文件>>导入项目:
在这里插入图片描述
选择证书,点击打开。
在这里插入图片描述

最后就是这个样子了。

在这里插入图片描述