【发布时间】:2022-01-28 08:56:42
【问题描述】:
我正在尝试使用位于 https://github.com/apple/swift-package-collection-generator/tree/main/Sources/PackageCollectionSigner 的新 SPM 集合签名实用程序
但老实说,我不知道如何获取必要的文件。
这是定义:
USAGE: package-collection-sign <input-path> <output-path> <private-key-path> [<cert-chain-paths> ...] [--verbose]
ARGUMENTS:
<input-path> The path to the package collection file to be signed
<output-path> The path to write the signed package collection to
<private-key-path> The path to certificate's private key (PEM encoded)
<cert-chain-paths> Paths to all certificates (DER encoded) in the chain. The certificate used for signing must be first and the root
certificate last.
我了解输入路径和输出路径参数,但我在哪里可以获得 PEM 编码的私钥和 DER 编码的路径链?
对不起,如果我太天真了,但这只是我没有经验的领域。
任何有关我如何获取/生成这些文件的帮助都会有所帮助。
谢谢。
【问题讨论】:
标签: swift macos encryption swift-package-manager encryption-asymmetric