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

Test-VdcToken Throws Exception WIth Unsupported TLSPDC Version #274

Closed
astro2000j opened this issue Apr 23, 2024 · 0 comments · Fixed by #277
Closed

Test-VdcToken Throws Exception WIth Unsupported TLSPDC Version #274

astro2000j opened this issue Apr 23, 2024 · 0 comments · Fixed by #277

Comments

@astro2000j
Copy link
Collaborator

Environment

Full Operating System: Windows Server 2019
VenafiPS version: 6.3.1
PowerShell version: Desktop 5.1
TLSPDC version (if applicable): 23.1

Steps to reproduce

if (Test-VdcToken) {
    New-VenafiSession ...
} 

Expected behavior

The Test-VdcToken should detected if $VenafiSession is initialized and contains a valid token and if so, return $true. If the $VenafiSession does not exist or the token is invalid, the return should be $false.

Actual behavior

When calling the Test-VdcToken function on an uninitialized $VenafiSession, I encountered the following error:

Test-VdcToken is only supported on version 20.3 and later.

The version of TLSPDC was 23.1, but because the function was not able to parse the $VenafiSession.Version value, the error message above was displayed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant