HTTPS and IIS Configuration for PingCastle Enterprise
Configuring HTTPS
To secure your PingCastle Enterprise installation with HTTPS, follow these standard IIS configuration steps:
-
Configure DNS: Add a DNS entry for the PingCastle Enterprise URL you want to use (e.g., pingcastle.yourdomain.com) pointing to your server's IP address
-
Obtain a Certificate: Request an SSL/TLS certificate from your Certificate Authority (CA)
tipEnsure the certificate Subject and Subject Alternative Name (SAN) DNS entries match the PingCastle Enterprise URL you configured in DNS (e.g., pingcastle.yourdomain.com). Without this, browsers will show certificate warnings.
-
Import the Certificate: Add the certificate to the machine's Personal certificate store:
- Open the Certificates snap-in (certlm.msc for Local Machine)
- Navigate to Personal > Certificates
- Import your certificate with the private key
-
Configure IIS Binding:
- Open Internet Information Services (IIS) Manager
- Locate the PingCastleEnterprise website
- Right-click and select "Edit Bindings..."
- Click "Add..." to create a new binding
- Select "https" as the type
- Choose port 443 (or your preferred port)
- Select your SSL certificate from the dropdown
- Click OK to save
-
Update Application Configuration: Set the Webhost setting to your HTTPS URL (e.g.,
https://pingcastle.yourdomain.com). See Configuring the web host.
PingCastle Enterprise uses the Webhost setting for links it sends to users via email and other notifications. Ensure this matches your HTTPS URL to avoid mixed content warnings and ensure users receive secure links.
IIS Maximum Upload Configuration
You may need to increase the default IIS upload limit to accommodate large report files. You can configure this setting several ways (web.config, IIS Manager), but PowerShell is the simplest:
Import-Module WebAdministration
$siteName = "PingCastleEnterprise"
$newLimit = 1GB # Byte value - PowerShell converts this automatically
Set-WebConfigurationProperty `
-PSPath "IIS:\Sites\$siteName" `
-Filter "system.webServer/security/requestFiltering/requestLimits" `
-Name "maxAllowedContentLength" `
-Value $newLimit
To find alternative configuration methods, search for "maxAllowedContentLength" in IIS documentation.
Manual Report Import Size Limit
If you need to import reports larger than 200MB manually, you'll need to adjust the client-side file size limit:
-
Open the JavaScript configuration file at:
C:\Program Files\Netwrix\PingCastleEnterprise\wwwroot\js\Reports\import.js -
Locate the
maxFilesizeparameter and change it from200to1024(or your desired limit in MB):maxFilesize: 1024 // Changed from 200 to 1024 MB
This setting only affects the client-side validation. Ensure your IIS upload limit (configured earlier) can handle files of this size.
This setting is only for the UI-Based imports.