You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Should return nothing, (but have cached a tenable rest api token for future calls)
Current Behavior
PS H:> Connect-PSTenable -Credential $creds -TenableServer "securitycenter.xxxx.xxx/rest" -Register
Invoke-RestMethod : Unable to connect to the remote server
At \pnas02fs2\Home\XXXX\WindowsPowerShell\Modules\PSTenable\0.2.3\public\Connect-PSTenable.ps1:72 char:20
Expected Behavior
Cache credentials, tenable server, web session, and token.
$Credential = Get-Credential
Connect-PSTenable -Credential $Credential -TenableServer "server.domain.com/rest" -Register
Should return nothing, (but have cached a tenable rest api token for future calls)
Current Behavior
PS H:> Connect-PSTenable -Credential $creds -TenableServer "securitycenter.xxxx.xxx/rest" -Register
Invoke-RestMethod : Unable to connect to the remote server
At \pnas02fs2\Home\XXXX\WindowsPowerShell\Modules\PSTenable\0.2.3\public\Connect-PSTenable.ps1:72 char:20
Possible Solution
Change the Example to read
Cache credentials, tenable server, web session, and token.
$Credential = Get-Credential
Connect-PSTenable -Credential $Credential -TenableServer "https://server.domain.com/rest" -Register
OR
update code to prepend 'https://' if the tenable server argument does not have :// in it.
Steps to Reproduce (for bugs)
Single step, so just review the above unexpected result.
Context
I had to read your code ... I was traumatized... just kidding, Im satisfied, just caused frustration
Your Environment
The text was updated successfully, but these errors were encountered: