跳转到内容
本站为社区维护的非官方中文翻译,与 Cloudflare, Inc. 无关联。本站不提供账户登录,请勿在任何非官方站点输入您的 Cloudflare 账户信息。官方文档:developers.cloudflare.com

移除密钥文件密码

最后更新 查看 MarkdownAgent 设置

你无法上传带有密码保护密钥文件的自定义证书。

移除密码的过程取决于操作系统。以下示例从 example.com.key 移除密码。

Linux

  1. 打开命令控制台。

  2. 进入包含 example.com.key 文件的目录。

  3. 复制原始密钥。

    cp example.com.key temp.key
  4. 运行以下命令(若使用 ECDSA 证书,将 rsa 替换为 ec)。

    openssl rsa -in temp.key -out example.com.key
  5. 在控制台窗口提示时,输入原始密钥密码。

  6. 将文件内容上传到 Cloudflare。

Windows

  1. 前往 https://indy.fulgan.com/SSL/ ↗ 并下载适用于你的 x86 或 x86_64 操作系统的最新版 OpenSSL。

  2. 打开 .zip 文件并解压。

  3. 选择 openssl.exe。

  4. 在出现的命令窗口中运行:

    rsa -in C:\Path\To\example.com.key -out key.pem
  5. 在 openssl.exe 命令窗口提示时输入原始密钥密码。

  6. 将 key.pem 文件内容上传到 Cloudflare。

这篇文档对您有帮助吗?