New-CertKitAppProxyIdentity
1.4
This script configures everything CertKit needs to deploy certificates to Microsoft Entra Application Proxy applications, following least privilege. It supports two authentication methods.
Client secret authentication (default):
- A dedicated app registration and service principal for CertKit.
- A client secret, which is copied to the clipboard and never displayed on
Client secret authentication (default):
- A dedicated app registration and service principal for CertKit.
- A client secret, which is copied to the clipboard and never displayed on
This script configures everything CertKit needs to deploy certificates to Microsoft Entra Application Proxy applications, following least privilege. It supports two authentication methods.
Client secret authentication (default):
- A dedicated app registration and service principal for CertKit.
- A client secret, which is copied to the clipboard and never displayed on screen.
Managed identity authentication (-ManagedIdentityId):
- Uses an existing user-assigned or system-assigned managed identity attached to the server running the CertKit agent. The script doesn't create the managed identity, which is an Azure resource.
Both methods:
- A custom Entra role that can only read Application Proxy settings and update the Application Proxy SSL certificate.
- The read-only Microsoft Graph application permission Application.Read.All, used by CertKit to find App Proxy applications.
- A tenant-wide assignment of the custom role to the CertKit identity, made directly or through Privileged Identity Management (PIM).
The script is safe to run more than once. Existing objects with the same names are reused, and existing role and permission assignments are not duplicated. With client secret authentication, a new client secret is created on every run. Use -RemoveExistingSecrets to remove older client secrets after the new one is created.
Show more
Client secret authentication (default):
- A dedicated app registration and service principal for CertKit.
- A client secret, which is copied to the clipboard and never displayed on screen.
Managed identity authentication (-ManagedIdentityId):
- Uses an existing user-assigned or system-assigned managed identity attached to the server running the CertKit agent. The script doesn't create the managed identity, which is an Azure resource.
Both methods:
- A custom Entra role that can only read Application Proxy settings and update the Application Proxy SSL certificate.
- The read-only Microsoft Graph application permission Application.Read.All, used by CertKit to find App Proxy applications.
- A tenant-wide assignment of the custom role to the CertKit identity, made directly or through Privileged Identity Management (PIM).
The script is safe to run more than once. Existing objects with the same names are reused, and existing role and permission assignments are not duplicated. With client secret authentication, a new client secret is created on every run. Use -RemoveExistingSecrets to remove older client secrets after the new one is created.
Installation Options
Owners
Copyright
Copyright (C) 2026 Richard M. Hicks Consulting, Inc. All Rights Reserved.
Package Details
Author(s)
- Richard Hicks
Tags
CertKit Entra EntraID AppProxy ApplicationProxy Certificate TLS SSL MicrosoftGraph Graph ServicePrincipal PIM LeastPrivilege
Functions
Dependencies
-
- Microsoft.Graph.Authentication (>= 2.0.0)
FileList
- New-CertKitAppProxyIdentity.nuspec
- New-CertKitAppProxyIdentity.ps1
Version History
| Version | Downloads | Last updated |
|---|---|---|
| 1.4 (current version) | 9 | 11/24/2026 |
| 1.3 | 12 | 11/14/2026 |
| 1.2 | 10 | 11/14/2026 |
| 1.1 | 9 | 11/14/2026 |