Jump to content
Software FX Community

Invoke-Webservice and expired SSL certificate


Recommended Posts


 I'm trying to call a webservice over ssl but the certificate is expired and I get:

Invoke-WebService : The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.

How can I go around this? Can we ignore the expired SSL certificate. I can do this in C# so we should have an option on the cmdlet to make this work.

 The web server runs inside the intranet and it requires windows authentication. How do I tell to Invoke-Webservice to use windows authentication?Thanks,Cosmin

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...