Skip to content

Need to convert vcert.exe command to PS version #227

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

You must be logged in to vote

Hi @VinceThompson. There are 3 steps: connect, enroll (new request), and get (export).

  1. Connecting to the server is accomplished with New-VenafiSession. You can have it create an access token for you or if you already have it, as in your example, you can use New-VenafiSession -Server 'https://xxxx' -AccessToken 123.
  2. and 3. A new request and export are 2 separate functions, but can be piped from one to the next. New-TppCertificate -path '\ved\policy\azure-certificates\test' -Name 'azure.local' -WorkToDoTimeout 60 -PassThru | Export-VenafiCertificate -TppFormat 'PKCS #12' -OutPath '~/Temp' -PrivateKeyPassword (ConvertTo-SecureString -string 'myPassw0rd!' -AsPlainText -Force)

A few things t…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@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