Skip to content

In CI/CD, what goes into $tpp_token? #223

Closed Answered by gdbarron
bannbay asked this question in Q&A
Discussion options

You must be logged in to vote

If New-VenafiSession is used as is, without -PassThru, there is no need to provide -VenafiSession to any function as the venafi session is saved to a local session variable.

New-VenafiSession -Credential $credential -Server Venafi.org.com -ClientId vcert-cli -scope @{'certificate'='manage,revoke';'configuration'='manage';'ssh'='manage'}
Find-VenafiCertificate

Optionally, you can add -PassThru to New-VenafiSession, set the output to a variable and then pass that to Find-VenafiCertificate as -VenafiSession. In this case, I recommend using a variable name other than $VenafiSession.

$sess = New-VenafiSession -Credential $credential -Server Venafi.org.com -ClientId vcert-cli -scope @{'certificate

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@bannbay
Comment options

@gdbarron
Comment options

Answer selected by gdbarron
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants