Closed David-Eichelmann closed 5 years ago
Not sure if this will work, but you can try this:
$PSDefaultParameterValues["Invoke-WebRequest:AllowUnencryptedAuthentication"] = $true
Not sure if this will work, but you can try this:
$PSDefaultParameterValues["Invoke-WebRequest:AllowUnencryptedAuthentication"] = $true
This is a perfect workaround for the issue! Thanks a lot.
Anyway, the library should offer a built-in solution.
Anyway, the library should offer a built-in solution.
Agreed. continued in #342 as a feature request
Description
If a local Jira installation is used via http (not https) because we are behind a LB that offloads SSL, it is not possible to connect to Jira through JiraPS.
There is no useful error message, except the generic ones like
After digging deeper and performing the Invoke-WebRequest manually, there comes the error
Steps To Reproduce
Set-JiraConfigServer ("http://jira.local")
New-JiraSession -Credential (Get-Credential $username) -Verbose
Expected behavior
The connection should work properly
Screenshots
Your Environment
Possible Solution
The connection should check if we are http only and add the parameter
-AllowUnencryptedAuthentication
to the internal Invoke-WebRequest call