← 返回命令列表

Linux command

trust 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

List

trust list

Example

trust list --filter=[blocklist|ca-anchors|certificates|trust-policy]

Store

trust anchor [path/to/certificate.crt]

Remove

trust anchor --remove [path/to/certificate.crt]

Extract

trust extract --format=x509-directory --filter=ca-anchors [path/to/directory]

Example

trust [subcommand] --help

说明

trust manages the shared system trust policy store, which contains trusted CA certificates, blocklisted certificates, and trust policies. It allows administrators to add, remove, and extract trust anchors used for TLS/SSL verification across the system. Changes made with trust affect all applications that use the p11-kit trust module, providing a unified way to manage certificates rather than configuring each application individually.

参数

list
List trust policy store items
anchor _file_
Add a trust anchor to the store
anchor --remove _file_
Remove a trust anchor
extract --format=_format_ _path_
Extract trust anchors in specified format.
extract-compat
Extract trust policy in a format compatible with the system's native tools.
--filter=_type_
Filter by type (ca-anchors, blocklist, certificates, trust-policy).
--format=_format_
Output format (x509-file, x509-directory, pem-file, pem-bundle, java-cacerts, openssl-bundle, openssl-directory, etc.).
--purpose=_purpose_
Filter by purpose (server-auth, client-auth, email, code-signing).

FAQ

What is the trust command used for?

trust manages the shared system trust policy store, which contains trusted CA certificates, blocklisted certificates, and trust policies. It allows administrators to add, remove, and extract trust anchors used for TLS/SSL verification across the system. Changes made with trust affect all applications that use the p11-kit trust module, providing a unified way to manage certificates rather than configuring each application individually.

How do I run a basic trust example?

Run `trust list` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does list do in trust?

List trust policy store items