Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get-VenafiCertificate else function needs VenafiSession #10

Closed
wilddev65 opened this issue Jun 14, 2021 · 1 comment · Fixed by #11
Closed

Get-VenafiCertificate else function needs VenafiSession #10

wilddev65 opened this issue Jun 14, 2021 · 1 comment · Fixed by #11
Assignees
Labels
bug Something isn't working

Comments

@wilddev65
Copy link
Collaborator

Environment

Operating System: Windows 10
VenafiPS version: 3.0.2
PowerShell version: 5.1

Steps to reproduce

$sess = New-VenafiSession -Server $TPPServer -AccessToken $token.AccessToken -PassThru
Get-VenafiCertificate -VenafiSession $sess

Expected behavior

Returns list of all certificates in system as 'Get-VenafiCertificate' would run in it's else statement;

Find-TppCertificate -Path '\ved' -Recursive -VenafiSession $VenafiSession

Actual behavior

You must first connect to the TPP server with New-VenafiSession
At C:\Program Files\WindowsPowerShell\Modules\VenafiPS\3.0.2\Classes\VenafiSession.ps1:38 char:21

  • ... throw "You must first connect to the TPP server with New- ...
  •             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : OperationStopped: (You must first ...w-VenafiSession:String) [], RuntimeException
    • FullyQualifiedErrorId : You must first connect to the TPP server with New-VenafiSession
@gdbarron
Copy link
Collaborator

Thanks Chris. Update rolling out now, will be in v3.0.3.

@gdbarron gdbarron self-assigned this Jun 14, 2021
@gdbarron gdbarron added the bug Something isn't working label Jun 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants