Invoke-Rest : StatusCode: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements

Welcome Idira to LIVEcommunity!

Our community just got stronger! Explore new identity security resources, connect with experts, and discover more ways to learn and collaborate.

Meet Idira

Invoke-Rest : StatusCode: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure

L4 Transporter

I have created a connection component using CyberArk plugin generator utility and try to import it using the rest api. Powershell script is downloaded from marketplace and attached here. When i run the script as Administrator window is coming to enter the username and password. I enter the Cyberark Administrator username and password then below erroer is comming. This version 10.10 and fresh install. Please assist Here. TIA.

 

Field_Content_versions_oct20__0682J000006yIsrQAE.png

1 accepted solution

Accepted Solutions

L4 Transporter

This is solved after importing the self signed certification of PVWA to trusted root certificate store.

View solution in original post

9 REPLIES 9

L6 Presenter

is your pvwa certificate self signed? if yes add the certificate to the trusted root on the machine running the script and try to run again

L4 Transporter

is your pvwa certificate self signed? if yes add the certificate to the trusted root on the machine running the script and try to run again

@Ankush Agarwal​  Yes its self signed. I am running the script on the machine which the pvwa is installed. Do i need to add the self signed certificate to trusted root on pvwa machine?

yes, try doing that..this error occurs with rest api when running self signed certificates. search on google more about this

yes, try doing that..this error occurs with rest api when running self signed certificates. search on google more about this

@Ankush Agarwal​ Which format do i need to export it. there are several formats.please let me know.

Field_Content_versions_oct20__0682J000006yLLhQAM.png

L4 Transporter

This is solved after importing the self signed certification of PVWA to trusted root certificate store.

can you please guide me how to imported the self signed certificate of PVWA, i am getting the same error.

1) Login to PVWA from Firefox and export the certificate.

2) enter certmgr in start and go to trusted root certifications-> certifications

2) then click action-> all tasks-> import

4) then import the exported certificate.

  • 1 accepted solution
  • 3556 Views
  • 9 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!