215 lines
4.4 KiB
HTML
215 lines
4.4 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of P11-KIT</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>P11-KIT</H1>
|
|
Section: System Commands (8)<BR>Updated: <BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
p11-kit - Tool for operating on configured PKCS#11 modules
|
|
<A NAME="lbAC"> </A>
|
|
<H2>SYNOPSIS</H2>
|
|
|
|
<DL COMPACT>
|
|
<DT id="1">
|
|
<B>p11-kit list-modules</B>
|
|
<DT id="2">
|
|
<B>p11-kit extract</B> ...
|
|
<TT> </TT><BR>
|
|
<DT id="3">
|
|
<B>p11-kit server</B> ...
|
|
<TT> </TT><BR>
|
|
</DL>
|
|
<A NAME="lbAD"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
<P>
|
|
|
|
<B>p11-kit</B>
|
|
<DD>is a command line tool that can be used to perform operations on PKCS#11 modules configured on the system.
|
|
<P>
|
|
|
|
See the various sub commands below. The following global options can be used:
|
|
<P>
|
|
|
|
<B>-v, --verbose</B>
|
|
<DL COMPACT><DT id="4"><DD>
|
|
Run in verbose mode with debug output.
|
|
</DL>
|
|
|
|
<P>
|
|
|
|
<B>-q, --quiet</B>
|
|
<DL COMPACT><DT id="5"><DD>
|
|
Run in quiet mode without warning or failure messages.
|
|
</DL>
|
|
|
|
<A NAME="lbAE"> </A>
|
|
<H2>LIST MODULES</H2>
|
|
|
|
<P>
|
|
|
|
List system configured PKCS#11 modules.
|
|
<P>
|
|
<DL COMPACT><DT id="6"><DD>
|
|
|
|
|
|
|
|
<PRE>
|
|
$ p11-kit list-modules
|
|
</PRE>
|
|
|
|
</DL>
|
|
|
|
|
|
|
|
|
|
<P>
|
|
|
|
The modules, information about them and the tokens present in the PKCS#11 modules will be displayed.
|
|
<A NAME="lbAF"> </A>
|
|
<H2>EXTRACT</H2>
|
|
|
|
<P>
|
|
|
|
Extract certificates from configured PKCS#11 modules.
|
|
<P>
|
|
|
|
This operation has been moved to a separate command
|
|
<B>trust extract</B>. See
|
|
<B><A HREF="/cgi-bin/man/man2html?1+trust">trust</A></B>(1)
|
|
for more information
|
|
<A NAME="lbAG"> </A>
|
|
<H2>SERVER</H2>
|
|
|
|
<P>
|
|
|
|
Run a server process that exposes PKCS#11 module remotely.
|
|
<P>
|
|
<DL COMPACT><DT id="7"><DD>
|
|
|
|
|
|
|
|
<PRE>
|
|
$ p11-kit server pkcs11:token1 pkcs11:token2 ...
|
|
$ p11-kit server --provider /path/to/pkcs11-module.so pkcs11:token1 pkcs11:token2 ...
|
|
</PRE>
|
|
|
|
</DL>
|
|
|
|
|
|
|
|
|
|
<P>
|
|
|
|
This launches a server that exposes the given PKCS#11 tokens on a local socket. The tokens must belong to the same module. To access the socket, use
|
|
p11-kit-client.so
|
|
module. The server address and PID are printed as a shell-script snippet which sets the appropriate environment variable:
|
|
P11_KIT_SERVER_ADDRESS
|
|
and
|
|
P11_KIT_SERVER_PID.
|
|
<A NAME="lbAH"> </A>
|
|
<H2>EXTRACT TRUST</H2>
|
|
|
|
<P>
|
|
|
|
Extract standard trust information files.
|
|
<P>
|
|
|
|
This operation has been moved to a separate command
|
|
<B>trust extract-compat</B>. See
|
|
<B><A HREF="/cgi-bin/man/man2html?1+trust">trust</A></B>(1)
|
|
for more information
|
|
<A NAME="lbAI"> </A>
|
|
<H2>REMOTE</H2>
|
|
|
|
<P>
|
|
|
|
Run a PKCS#11 module remotely.
|
|
<P>
|
|
<DL COMPACT><DT id="8"><DD>
|
|
|
|
|
|
|
|
<PRE>
|
|
$ p11-kit remote /path/to/pkcs11-module.so
|
|
$ p11-kit remote pkcs11:token1 pkcs11:token2 ...
|
|
</PRE>
|
|
|
|
</DL>
|
|
|
|
|
|
|
|
|
|
<P>
|
|
|
|
This is not meant to be run directly from a terminal. But rather in a
|
|
<B>remote</B>
|
|
option in a
|
|
<B><A HREF="/cgi-bin/man/man2html?5+pkcs11.conf">pkcs11.conf</A></B>(5)
|
|
file.
|
|
<P>
|
|
|
|
This exposes the given PKCS#11 module or tokens over standard input and output. Those two forms, whether to expose a module or tokens, are mutually exclusive and if the second form is used, the tokens must belong to the same module.
|
|
<A NAME="lbAJ"> </A>
|
|
<H2>BUGS</H2>
|
|
|
|
<P>
|
|
|
|
Please send bug reports to either the distribution bug tracker or the upstream bug tracker at
|
|
m[blue]<B><A HREF="https://github.com/p11-glue/p11-kit/issues/">https://github.com/p11-glue/p11-kit/issues/</A></B>m[].
|
|
<A NAME="lbAK"> </A>
|
|
<H2>SEE ALSO</H2>
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?5+pkcs11.conf">pkcs11.conf</A></B>(5)
|
|
<P>
|
|
|
|
Further details available in the p11-kit online documentation at
|
|
m[blue]<B><A HREF="https://p11-glue.github.io/p11-glue/p11-kit/manual/">https://p11-glue.github.io/p11-glue/p11-kit/manual/</A></B>m[].
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="9"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="10"><A HREF="#lbAC">SYNOPSIS</A><DD>
|
|
<DT id="11"><A HREF="#lbAD">DESCRIPTION</A><DD>
|
|
<DT id="12"><A HREF="#lbAE">LIST MODULES</A><DD>
|
|
<DT id="13"><A HREF="#lbAF">EXTRACT</A><DD>
|
|
<DT id="14"><A HREF="#lbAG">SERVER</A><DD>
|
|
<DT id="15"><A HREF="#lbAH">EXTRACT TRUST</A><DD>
|
|
<DT id="16"><A HREF="#lbAI">REMOTE</A><DD>
|
|
<DT id="17"><A HREF="#lbAJ">BUGS</A><DD>
|
|
<DT id="18"><A HREF="#lbAK">SEE ALSO</A><DD>
|
|
</DL>
|
|
<HR>
|
|
This document was created by
|
|
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
|
using the manual pages.<BR>
|
|
Time: 00:06:14 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|