Skip to main content
Version: 4.5.x LTS

Working with Certificates

If you want to add a certificate to an inventory, you should attach it as a file. The file is then encrypted and stored as a secret. Follow the steps described in Working with Inventory File Attachments.

If you nevertheless want to add a certificate as plain text inside the inventory, perform the next steps:

  1. Add the variable name.
  2. Start its value with the pipe symbol.
  3. Starting on the next line, paste the certificate file content. Make sure to add proper indentation for every pasted line, as depicted by the following example:
vars:
my-certificate: |
-----BEGIN CERTIFICATE-----
<certificate-content>
-----END CERTIFICATE-----