[ERROR] 001E Failed to perform request (Reason=[SSL connect error]) - When running APIKeyManager.exe
417
Created On 11/10/26 10:59 AM - Last Modified 11/10/26 16:08 PM
Symptom
When attempting to execute the command:
ApiKeyManager.exe add -f "<PSM installation folder path>\Vault\apigw.cred" -t <PSM app User> -u administrator -a https://PVWA-Address/passwordvault/api
We are getting the following error:
[DEBUG] Logging in to API as administrator
[ERROR] 001E Failed to perform request (Reason=[SSL connect error])
[ERROR] ApiKeyManager failed. Add command failed to execute.
When connecting to PSM/CPM to PVWA address with browser, there is not certificate related issues.
PVWA opens up with any additional prompts.
Environment
9.10;10.10;11.1;11.2;11.3;11.4;11.5;11.6;11.7;12.0;12.1;12.2;12.6;13.0;14.2 Privileged Access Manager (PAM, self-hosted) Password Vault Web Access;Central Policy Manager (CPM);PSM;Privileged Session Management (PSM) CPM/PVWA/PSM
Cause
Possible causes:
1. Incorrect TLS configuration used by .NET
2. PSM/CPM has communication issues to CRL server
3. SSL certificate does not have Subject Alternative Name (SAN)
[Verify ssl connection from PSM/CPM to PVWA]
Verify the following on .NET for the TLS level used:
Solution using Powershell
To enable code to use the latest version of TLS (e.g. 1.2) the following registry changes may need to be made:
Open Powershell and check for supported protocols by using [Net.ServicePointManager]::SecurityProtocol
Run the following 2 cmdlets to set .NET Framework strong cryptography registry keys:
set strong cryptography on 64 bit .Net Framework (version 4 and above)
Set-ItemProperty -Path 'HKLM:\SOFTWARE\Wow6432Node\Microsoft\.NetFramework\v4.0.30319' -Name 'SchUseStrongCrypto' -Value '1' -Type DWord
set strong cryptography on 32 bit .Net Framework (version 4 and above)
Set-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\.NetFramework\v4.0.30319' -Name 'SchUseStrongCrypto' -Value '1' -Type DWord
Restart Powershell and check again for supported protocol by using [Net.ServicePointManager]::SecurityProtocol
It should now display Tls12 as well.
--
[Verifying the certificate used]
There is a tool called certutil.exe which should be installed on Windows by default. It can be used to perform a verification of a given certificate and display a detailed result of the verification, including errors. We believe it can give us a detailed root cause.
Please run a test with the certutil.exe tool:
1. Download the PVWA certificate and save it to the PSM machine as a file. This can be easily done by navigating to PVWA from PSM via a browser and taking the certificate from there.
2. Open cmd in the folder where you saved the certificate file.
3. Run the following command:
certutil.exe -verify -URLFetch <Certificate file name>
For example:
certutil.exe -verify -URLFetch pvwacert.crt
If related to communication issues with revocation server, from the output we will see that connection to the certificate revocation server is failing:
--
-------- CERT_CHAIN_CONTEXT --------
ChainContext.dwInfoStatus = CERT_TRUST_HAS_PREFERRED_ISSUER (0x100)
ChainContext.dwErrorStatus = CERT_TRUST_REVOCATION_STATUS_UNKNOWN (0x40)
ChainContext.dwErrorStatus = CERT_TRUST_IS_OFFLINE_REVOCATION (0x1000000)
SimpleChain.dwInfoStatus = CERT_TRUST_HAS_PREFERRED_ISSUER (0x100)
SimpleChain.dwErrorStatus = CERT_TRUST_REVOCATION_STATUS_UNKNOWN (0x40)
SimpleChain.dwErrorStatus = CERT_TRUST_IS_OFFLINE_REVOCATION (0x1000000)
--
[Verified if the SSL certificate having Subject Alternative name]
Launch PVWA portal and check on the portal certificate details.
If subject alternative name does not exist, required to regenerate the CA Signed certificate with SAN included.
Resolution
-- Possible Resolutions --
1. If related to TLS configuration on .NET, rectify the settings above should resolve the problem.
2. If related to CRL:
- Ensure that CPM/PSM is able to communicate to CRL Server
3. Use self-signed certificate on PVWA, and import it to the CPM/PSM server. Then execute the APIKeyManager commands.
https://community.cyberark.com/s/article/When-using-ApiKeyManager-it-fails-with-ERROR-001E-Failed-to-perform-request-Reason-SSL-connect-error