github.com/Venafi/vcert/v5@v5.10.2/examples/playbook/sample.tlspc.yaml (about)

     1  config:
     2    connection:
     3      platform: vaas
     4      credentials:
     5        apiKey: '{{ Env "TLSCP_APIKEY" }}' # APIKEY as Environment variable
     6  certificateTasks:
     7    - name: myCertificate # Task Identifier, no relevance in tool run
     8      renewBefore: 31d
     9      request:
    10        csr: local
    11        subject:
    12          # Templating needs to go between single quotes to avoid issues when refreshing tokens and saving back
    13          commonName: '{{ Hostname | ToLower -}}.{{- Env "USERDNSDOMAIN" | ToLower }}'
    14          country: US
    15          locality: Salt Lake City
    16          state: Utah
    17          organization: Venafi Inc
    18          orgUnits:
    19            - engineering
    20            - marketing
    21        zone: "Open Source\\vcert"
    22      installations:
    23        - format: PEM
    24          file: "/path/to/my/certificate/cert.cer"
    25          chainFile: "/path/to/my/certificate/chain.cer"
    26          keyFile: "/path/to/my/certificate/key.pem"
    27          afterInstallAction: "echo Success!!!"