# Import PFX Certificate

The **Import PFX Certificate** option allows you to import a code signing certificate using a PFX file that includes the certificate private key. This certificate is used to sign content published by the Publisher.

When importing a new certificate, the Publisher checks whether an existing certificate is already configured. If the current certificate is still valid, you are prompted to confirm before it is replaced. This helps prevent accidental replacement of an active and trusted signing certificate.

<figure><img src="https://3773699522-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MX7dvS0r_4fc0AikgJS%2Fuploads%2FJZBSCUEVjZsbRKIBZsgJ%2Fimage.png?alt=media&#x26;token=112b81de-131d-4e36-a2cd-a8613a34b3fa" alt="Import a PFX certificate" width="563"><figcaption></figcaption></figure>

When importing a new certificate, the Publisher will prompt you to confirm if an existing certificate is still valid, helping prevent accidental replacement of an active and trusted signing certificate.

<figure><img src="https://3773699522-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MX7dvS0r_4fc0AikgJS%2Fuploads%2F5sFerNX8FzDwZFjKzzir%2Fimage.png?alt=media&#x26;token=ff5670c3-fb61-4f08-b883-c2e602159b35" alt="Overwrite Certificate Validation" width="328"><figcaption></figcaption></figure>

To import a PFX certificate:

1. Click Import PFX Certificate
2. Browse to the location where the .pfx certificate is saved.
3. Click Open.
4. Enter the password for the private key

<figure><img src="https://3773699522-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MX7dvS0r_4fc0AikgJS%2Fuploads%2FZlVpEuqMoYcc2K6eigPG%2Fimage.png?alt=media&#x26;token=c462177a-3590-4265-931a-604d0864c0e4" alt="Enter the PFX password" width="390"><figcaption></figcaption></figure>

5. Click **OK**.

If the certificate is valid and suitable for code signing, the import completes successfully.

<figure><img src="https://3773699522-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MX7dvS0r_4fc0AikgJS%2Fuploads%2FJT848ixvlbrhTu4mmSdw%2Fimage.png?alt=media&#x26;token=044fb679-9d41-4f6e-9cad-2731955dd646" alt="Import was succesful" width="444"><figcaption></figcaption></figure>

If the PFX certificate is not suitable for code signing operations, an error dialog will indicate that.

<figure><img src="https://3773699522-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MX7dvS0r_4fc0AikgJS%2Fuploads%2FgZd2ZLcEMR6EIXIr9hAg%2Fimage.png?alt=media&#x26;token=a981d437-b03c-430a-a048-6425392c519a" alt="Certificate not suitable" width="317"><figcaption></figcaption></figure>

{% hint style="info" %}
**Note**

When importing a new certificate, the Publisher will prompt you to confirm if an existing certificate is still valid, helping prevent accidental replacement of an active and trusted signing certificate.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.patchmypc.com/patch-my-pc-publisher/administration/general/certificate-management/import-pfx-certificate.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
