Client Credentials for Patch My PC Publisher
Applies to: Patch My PC Publisher V3.x
Patch My PC (PMPC) Publisher authenticates to Microsoft Intune using client credentials associated with an Entra ID app registration. Client credentials allow Publisher to authenticate using app-only (non-interactive) authentication, which is required for automation and unattended publishing.
Microsoft Entra ID supports two client credential types:
Although Publisher supports both methods, certificate-based authentication is strongly recommended.
Use a Certificate for Authentication
Certificate-based authentication is the preferred and recommended approach for securing Publisher’s access to your Intune tenant. It uses a certificate that your Publisher service holds the private key for, while the public key is uploaded to the Entra ID app registration. This method aligns with Microsoft’s security best practices for service-to-service authentication.
Prerequisites
To use a Certificate for Authentication:
You must have created an Entra ID App Registration.
You need access to the device where Publisher will be installed to create and export certificates.
The certificate must meet the following requirements to be used for app authentication:
RSA key with 2048-bit minimum key length. (Entra ID currently supports only RSA).
Signed using SHA256 or stronger. (Entra ID also supports certificates signed with SHA384 and SHA512 hash algorithms).
Intended for client authentication.
Valid and not expired.
Private key accessible to the Publisher service.
Step 1: Create a Self-Signed Certificate
To create a Self-Signed Certificate:
Open PowerShell as Administrator on the computer where Publisher is installed.
Run the following PowerShell snippet to create a new self-signed certificate in the Local Machine Personal store.
Open certlm.msc and verify the new certificate appears under Local Machine | Personal.

Whilst still in the elevated PowerShell session, run the following PowerShell snippet to export the public key (.cer) to a temporary folder.
Confirm the
.cerfile exists in C:\temp\certs.

Step 2: Upload the Certificate to the App Registration
To upload the certificate to the App Registration:
In the Microsoft Entra admin center, open the app registration you created.
Navigate to Certificates & secrets.
Under Certificates, click Upload certificate.
Select the exported
.cerfile and click Add.Verify the certificate’s thumbprint appears in the list with the correct expiration.

Step 3: Configure Publisher to use the Certificate
Finally, you need to configure Publisher to use the Certificate.

Use a Client Secret for Authentication
Client secret–based authentication is supported by Publisher, but it is not the recommended approach for production environments. A client secret is a shared string value (similar to a password) that Publisher uses to authenticate to Microsoft Intune via the Entra ID app registration.
This method may be suitable for:
Short-term testing or proof-of-concept scenarios.
Environments where certificate-based authentication is not possible.
Prerequisites
You must have created an Entra ID App Registration.
You have permission to create secrets for the app registration.
Step 1: Create a Client Secret
To create a Client Secret:
Sign in to the Microsoft Entra admin center.
Navigate to Entra ID | App registrations.
Select the app registration created for Publisher.
In the left-hand menu, select Certificates & secrets.
Under Client secrets, select New client secret.

Enter a description (optional).
Choose an expiration period appropriate for your organization.
Select Add.
After the secret is created, copy the Value immediately and store it securely, as you will not be able to retrieve the secret once you navigate away from the page.

Step 2: Configure Publisher to use the Client Secret
Finally, you need to configure Publisher to use the Client Secret.

Last updated
Was this helpful?