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

add customfield example #413

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions examples/customfield.pem.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
config:
connection:
platform: tpp
url: https://my.tpp.instance.company.com # URL to TPP instance
trustBundle: trustbundle.pem # TrustBundle for TPP connection
credentials:
accessToken: '{{ Env "TPP_ACCESS_TOKEN" }}'
refreshToken: '{{ Env "TPP_REFRESH_TOKEN" }}'
clientId: vcert-sdk
certificateTasks:
- name: myCertificate # Task Identifier
renewBefore: 31d
setEnvVars: ["thumbprint", "serial"] #will set environment variables VCERT_TASKNAME_THUMBPRINT and VCERT_TASKNAME_SERIAL
request:
csr: service
keyPassword: "newPassword!"
subject:
# Templating needs to go between single quotes to avoid issues when refreshing tokens and saving back
commonName: 'mypem.company.com'
fields:
- name: 'mycustomfield'
value: '12345'
zone: 'Certificates\Vcert'
installations:
- format: PEM
file: 'c:\vcert\tpp\windows.pem'
chainFile: 'c:\vcert\tpp\chain.cer'
keyFile: 'c:\vcert\tpp\windowskey.pem'
afterInstallAction: 'echo Success!!!'