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:
- Add the variable name.
- Start its value with the pipe symbol.
- 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-----