大网数据广告活动
域与目录服务

Export a certificate with its private key in Windows Server

· 52CE 我爱测

Learn how to export a certificate with its private key.

If you already have a certificate installed on a Windows device and you want to install the same certificate on a Windows device that requires a private key, you can export the certificate with the private key. This article describes how to export a certificate from the Windows certificate stores of the local computer with the private key.

Prerequisites

Before you begin, you need:

  • A certificate installed with the private key to a certificate store of the local computer.

  • An Active Directory domain with an account that is a member of the Domain Admins or Enterprise Admins domain security group. For more information about using the appropriate accounts and group memberships, see Active Directory security groups.

Export a certificate from the Windows certificate stores with the private key

To export a certificate from the Windows certificate stores with the private key:

  1. Open the certificate management console for the local computer by running the following command. Some methods of running this command are from the Start menu, the Windows Run prompt, PowerShell prompt, or command prompt.

    certlm.msc
    
  2. In the console tree, navigate to the certificate you want to export.

  3. Right-click the certificate, select All Tasks, and then select Export.

  4. On the screen Welcome to the Certificate Export Wizard, select Next.

  5. To export the private key, select Yes, export the private key, then select Next.

  6. For the file format, select Personal Information Exchange - PKCS #12 (.PFX). Check the box for Include all certificates in the certification path if possible, to include the whole certificate chain, then select Next.

  7. Check the box to enter and confirm a password to protect the private key, and select AES256-SHA256 for the encryption method, then select Next. It's important to guard the security of the private key.

  8. Enter or browse to the file path, then select Next.

  9. Review the summary, then select Finish.

Once the certificate is exported, you can import it to another device that requires the certificate with private key.

Related content

Source: Microsoft Learn / Windows Server documentation by Microsoft and contributors (upstream author metadata: robinharwood). Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Server documentation
适用范围
Windows Server · Source date 5/14/2025
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。