Closed raymix closed 5 years ago
Please try
$PSDefaultParameterValues["Invoke-WebRequest:SkipCertificateCheck"] = $true
@lipkau Thank you, that works great. I have also added $isLinux check so the same script now works well across both Win and Linux platforms
Context
Description
Additional Information
EDIT: After some digging in source code I noticed some private functions are using Invoke-Webrequest, I have tried to run it manually and it throws me an SSL error, it goes away if I use skip cert switch and request finishes successfully. I am having trouble finding a way to ignore error without customising JiraPS scripts or even import our CA into PWSH. Any ideas? Could this be the culprit?