PVWA REST API - HTTP 500 error
Symptom
Making REST API requests toward the PVWA results in HTTP 500 errors. When browsing the PVWA locally on the server there are no issues noticed.
From checking the IIS logs, the following error messages from around the time you reproduced the issue:
2018-07-23 10:51:50 W3SVC2 XXXXX 1.1.1.1 POST /PasswordVault/WebServices/auth/Cyberark/CyberArkAuthenticationService.svc/Logon - 443 - 1.1.1.2 HTTP/1.1 Mozilla/5.0+(Windows+NT;+Windows+NT+10.0;+en-GB)+WindowsPowerShell/5.1.14393.2312 - - XXXXXXX 500 0 0 693 388 16563
It may also look like redirection is occurring within the IIS logs. Even though this wasn't the URL you were performing the request against:
2018-07-23 08:25:31 W3SVC2 XXXX 1.1.1.1 POST /PasswordVault/logon.aspx ReturnUrl=%2fPasswordVault%2fdefault.aspx 443 - 1.1.1.2 500 ...
Environment
10.10;11.5;11.6;11.7;12.0;12.1;12.2;11.9;11.8;12.6;13.0 Privileged Access Manager (PAM, self-hosted) Password Vault Web Access PVWA, REST API
Cause
Multiple HTTPS bindings have been configured for the PVWA within IIS Manager. There are known issues with IIS when you add a second HTTPS binding and associate a second certificate to the second binding. The first HTTPS binding also gets updated with the new certificate resulting in only one certificate being used for both bindings. If you then go back to the first HTTPS binding and set it back to the correct certificate, it also updates the second HTTPS binding with the certificate. So only one certificate is used for both bindings and this seems to confuse IIS and/or the REST API. This issue isn't just relevant to the PVWA but to most IIS sites.
Resolution
The solution here would be to remove one of the HTTPS bindings and then confirm if this resolves the issue.
Additional Information
Details
SYMPTOM:PROBLEM:
Multiple HTTPS bindings have been configured for the PVWA within IIS Manager. There are known issues with IIS when you add a second HTTPS binding and associate a second certificate to the second binding. The first HTTPS binding also gets updated with the new certificate resulting in only one certificate being used for both bindings. If you then go back to the first HTTPS binding and set it back to the correct certificate, it also updates the second HTTPS binding with the certificate. So only one certificate is used for both bindings and this seems to confuse IIS and/or the REST API. This issue isn't just relevant to the PVWA, but for most IIS sites.
SOLUTION:
The solution here would be to remove one of the HTTPS bindings and then confirm if this resolves the issue.