security - Invoke-RestMethod : The underlying connection was closed: Could not establish trust relationship for the SSL/TLS -


i trying connect localhost rest server using powershell invoke-restmethod cmdlet follows:

invoke-restmethod -uri "https://localhost:port/xxx/xxx/" -certificatethumbprint "thumbprint of client certificate" 

whenever run command error invoke-restmethod : underlying connection closed: not establish trust relationship ssl/tls secure channel.

i have necessary server certificate , client certificate installed. powershell client certificate installed in currentuser store. certification authority cert added "trusted root certification authority".

can please explain why error? not looking tricks ignore cert errors, trying understand what's wrong powershell. if use ie works fine.

thanks.


Comments

Popular posts from this blog

OpenCV OpenCL: Convert Mat to Bitmap in JNI Layer for Android -

android - org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope -

python - How to remove the Xframe Options header in django? -