Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
Write a variable where you want this run's value. Infisical substitutes it before the command is sent to the server, so a command keeps working when the name schema or export format changes.
| Variable | Value |
| --- | --- |
| `{{certificatePath}}` | Full path of the certificate file this run writes. Single-certificate syncs only |
| `{{certificateDirectory}}` | The destination directory |
| `{{certificateFiles}}` | Every path this run writes, one per line |
| `{{commonName}}` | The certificate's common name. Single-certificate syncs only |
| `{{exportPassword}}` | The export password, set only when the export format is PKCS#12 or Java KeyStore. `{{pkcs12Password}}` is an older name for the same value and still works |
The paths are the same for both commands, but a health check runs before anything is written, so they describe the files the run is *about to* write rather than files already on the host.
Each value is inserted already quoted for the target's shell, so write `{{certificatePath}}` rather than `"{{certificatePath}}"`. A variable that has no value for the run becomes an empty string.
Only the names in this table are substituted. Anything else in double braces is left in the command exactly as you wrote it, so a command that calls a tool with its own braces (helm, jq, a Go template) keeps working, and a misspelled variable reaches the server as literal text rather than silently turning into nothing.
<Note>
`{{certificatePath}}` and `{{commonName}}` name one specific certificate, so a command that uses either can only be saved on a sync with a single certificate linked. Linking a second certificate to such a sync is rejected, as is adding one of these variables to a sync that already has several. To act on every certificate in the run, use `{{certificateFiles}}`, which lists one path per line.
</Note>