[PSM] - How to Install, Configure, and Troubleshoot the PSM Health Check (IIS, .NET Hosting Bundle, and HTTP 500.19)

[PSM] - How to Install, Configure, and Troubleshoot the PSM Health Check (IIS, .NET Hosting Bundle, and HTTP 500.19)

155
Created On 11/12/26 15:37 PM - Last Modified 11/12/26 16:27 PM


Objective


The PSM Health Check application is an IIS-hosted web service that enables external load balancers and monitoring systems to query the real-time availability and service status of a PSM server over HTTPS. 

 

Legacy .NET Core versions (such as 2.1 and 3.1) are end-of-life (EOL) and should not be deployed. Modern PSM environments utilize the Microsoft .NET 8.x Windows Server Hosting Bundle. When a newer supported .NET Hosting Bundle is installed, older .NET Core runtimes do not need to be present on the server. Only one version of the .NET Hosting Bundle should be installed on the PSM server to prevent module handler conflicts in IIS.

 

==

Common Issues Faced:

==

1. HTTP Error 500.19 (Error Code 0x8007000d):
   - Cause: The IIS `web.config` references `<aspNetCore processPath="...">`, but IIS cannot load the `AspNetCoreModuleV2`. This indicates the .NET Hosting Bundle was not installed, was installed after IIS without an `iisreset`, or multiple conflicting .NET runtimes are installed.
   - Resolution: Uninstall all .NET Core / .NET Hosting entries from Programs and Features. Remove the `PSM` application from IIS Manager. Reinstall the .NET 8.x Hosting Bundle, reboot the server, and re-run `.\HealthCheck.ps1`.

 

2. SSL Settings Error ("There was an error while performing this operation"):

 
   - Cause: The IIS application structure is corrupted or unable to read delegated configuration sections in `web.config`.
   - Resolution: In IIS Manager, remove the `PSM` application. Delete the deployed files in the destination site folder (retaining the source media under `PSM\HealthCheck`). Confirm the Port 443 binding on Default Web Site has a valid certificate, re-run `.\HealthCheck.ps1`, and reapply Step 5.

==



Environment


14.2;14.6;15.0;14.7;14.8;15.2 Privileged Access Manager (PAM, self-hosted) PSM

Procedure


Step 1: Install IIS Prerequisites

--
1. Log on to the PSM server as a local Administrator.
2. Open Server Manager and ensure the Web Server (IIS) role is installed with the following features enabled:
   - Web Server > Common HTTP Features: Default Document, Directory Browsing, HTTP Errors, Static Content
   - Web Server > Security: Request Filtering
   - Management Tools: IIS Management Console

--

 

Step 2: Bind the SSL Certificate in IIS

--
1. Open IIS Manager (`inetmgr`).
2. Verify or import the server SSL certificate under "Server Certificates".
3. Under Connections, expand Sites and select "Default Web Site".
4. In the Actions pane on the right, click "Bindings...".
5. Add or edit the `https` binding:
   - Type: https
   - Port: 443
   - SSL certificate: Select the valid server certificate
6. Click OK and close the Bindings window.
7. Open an elevated Command Prompt and run `iisreset`.

--

 

Step 3: Install the Microsoft .NET Windows Server Hosting Bundle

--
1. Download the latest **Microsoft .NET 8.x Windows Server Hosting Bundle** installer (`dotnet-hosting-8.x-win.exe`) from the official Microsoft .NET download repository.
   (Note: Ensure you download the "Hosting Bundle", which packages both the .NET Runtime and the IIS `AspNetCoreModuleV2`).
2. Run the installer as Administrator.
3. Restart the PSM server to ensure IIS loads the ASP.NET Core module into its worker processes.
4. Verify in Control Panel > Programs and Features that only one version of the .NET Core Hosting Bundle is listed.

--

 

Step 4: Execute the Health Check Deployment Script

--
1. Open PowerShell as an Administrator.
2. Navigate to the PSM Health Check directory:
   cd "C:\Program Files (x86)\CyberArk\PSM\HealthCheck"
3. Run the deployment script:
   .\HealthCheck.ps1
   (If PSM is installed in a non-default path, specify: `.\HealthCheck.ps1 -installPath "<CustomPSMPath>"`).
4. The script will create the `PSM` application under the IIS Default Web Site. A warning regarding SSL settings during execution is expected and resolved in Step 5.

--

 

Step 5: Configure IIS SSL Settings

--
1. In IIS Manager, select "Default Web Site".
2. Double-click "SSL Settings":
   - Ensure "Require SSL" is UNCHECKED.
   - Click Apply.
3. In the left navigation tree, expand Default Web Site and select the **PSM** application.
4. Double-click "SSL Settings" for the PSM application:
   - Check "Require SSL".
   - Under Client certificates, select "Accept" (or "Ignore" depending on whether your load balancer presents client certificates).
   - Click Apply.

--

 

Step 6: Verify Health Check Operation

--
Open a web browser or use PowerShell from a remote monitoring machine/load balancer to access the endpoint:
https://<PSM_Server_FQDN>/PSM/api/health
Confirm that the endpoint returns an HTTP 200 OK status with the service health payload.

--



Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000001lg1CAA&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail