clevis-encrypt-file - Man Page
Encrypts using a file policy
Synopsis
clevis encrypt file Config < PT > JWE
Overview
The clevis encrypt file command encrypts using a file policy. Its only argument is the JSON configuration object.
Encrypting data using the file pin works like this:
$ clevis encrypt file '{"name":"/path/to/file"}' < PT > JWEThe given file must not exist yet.
To decrypt the data, just pass it to the clevis decrypt command:
$ clevis decrypt < JWE > PT
Config
This command uses the following configuration properties:
- name (string) : The name to the file where the jwk is stored (REQUIRED)
Bugs
Requires that directories for that file already exist.
Rather for educational purposes.
See Also
Info
03/27/2026