Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not establish trust relationship for the SSL/TLS secure channel #411

Open
1 of 3 tasks
evanjrowley opened this issue Nov 19, 2024 · 0 comments
Open
1 of 3 tasks
Labels

Comments

@evanjrowley
Copy link

evanjrowley commented Nov 19, 2024

Summary

Cannot use Get-Accounts.ps1 (+ workarounds) with a the PVWA self-signed certificate.

Steps to Reproduce

  1. Have a CyberArk PVWA installation using the default self-signed certificate.
  2. Try to use the Get-Accounts.ps1 script:
    .\Get-Accounts.ps1 -DisableSSLVerify -PVWAURL 'https://localhost/PasswordVault/' -Details -AccountID ‘Test User 01’

Expected Results

Information returned by the CyberArk REST API accessed by the PowerShell script.

Actual Results

An error message like this:

Invoke-RestMethod : The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.
At A:\epv-api-scripts-main\Get Accounts\Get-Accounts.ps1:393 char:34

Reproducible

  • Always
  • Sometimes
  • Non-Reproducible

Version/Tag number

CyberArk PAS Self Hosted V14.2

Environment setup

Bare-minimum CyberArk Vault & PVWA colocated setup using the out-of-the-box self-signed certificate. Windows Server 2022.

Additional Information

A very similar issue #225 was opened up in 2022. I've tried the first and second workarounds there, but it hasn't solved the problem for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

1 participant