【问题标题】:Transferring public and private key on mac在 mac 上传输公钥和私钥
【发布时间】:2015-10-25 21:52:17
【问题描述】:

如何将私钥/公钥从一台 mac 转移到另一台?

我知道如何使用 Keychain Access 将私钥导出到 .p12,然后当我在目标 mac 中双击它时,它会添加到 Keychain Access。 但是,当我将公钥导出到 .pem 文件时,在目标 mac 中双击它只会吐出:

An error has occurred. Unable to import an item. The contents of this item cannot be retrieved.

当我尝试 the solutionsecurity import pub.pem -k login.keychain 时,它显示为 1 key imported.,但它没有显示在 Keychain Access 上。

谢谢

【问题讨论】:

    标签: macos certificate keychain private-key public-key


    【解决方案1】:

    根据this,看起来在运行security import... 命令时,它被添加到通用名称Imported Public Key 的钥匙串中。

    现在您只需将其重命名为相关名称(例如私钥名称)。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2013-07-09
      • 2011-07-19
      • 1970-01-01
      • 2016-03-27
      • 2016-02-03
      • 1970-01-01
      • 2017-09-20
      相关资源
      最近更新 更多