1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
5 | %general-entities;
|
---|
6 |
|
---|
7 | <!ENTITY p11-kit-download-http "https://github.com/p11-glue/p11-kit/releases/download/&p11-kit-version;/p11-kit-&p11-kit-version;.tar.gz">
|
---|
8 | <!ENTITY p11-kit-download-ftp " ">
|
---|
9 | <!ENTITY p11-kit-md5sum "85e1cdb5fce0087711ba2521975f0420">
|
---|
10 | <!ENTITY p11-kit-size "1.2 MB">
|
---|
11 | <!ENTITY p11-kit-buildsize "45 MB (add 168 MB for tests)">
|
---|
12 | <!ENTITY p11-kit-time "0.4 SBU (add 0.6 SBU for tests)">
|
---|
13 | ]>
|
---|
14 |
|
---|
15 | <sect1 id="p11-kit" xreflabel="p11-kit-&p11-kit-version;">
|
---|
16 | <?dbhtml filename="p11-kit.html"?>
|
---|
17 |
|
---|
18 | <sect1info>
|
---|
19 | <othername>$LastChangedBy$</othername>
|
---|
20 | <date>$Date$</date>
|
---|
21 | </sect1info>
|
---|
22 |
|
---|
23 | <title>p11-kit-&p11-kit-version;</title>
|
---|
24 |
|
---|
25 | <indexterm zone="p11-kit">
|
---|
26 | <primary sortas="a-p11-kit">p11-kit</primary>
|
---|
27 | </indexterm>
|
---|
28 |
|
---|
29 | <sect2 role="package">
|
---|
30 | <title>Introduction to p11-kit</title>
|
---|
31 |
|
---|
32 | <para>
|
---|
33 | The <application>p11-kit</application> package provides a way to load and
|
---|
34 | enumerate PKCS #11 (a Cryptographic Token Interface Standard) modules.
|
---|
35 | </para>
|
---|
36 |
|
---|
37 | &lfs83_checked;
|
---|
38 |
|
---|
39 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
40 | <itemizedlist spacing="compact">
|
---|
41 | <listitem>
|
---|
42 | <para>
|
---|
43 | Download (HTTP): <ulink url="&p11-kit-download-http;"/>
|
---|
44 | </para>
|
---|
45 | </listitem>
|
---|
46 | <listitem>
|
---|
47 | <para>
|
---|
48 | Download (FTP): <ulink url="&p11-kit-download-ftp;"/>
|
---|
49 | </para>
|
---|
50 | </listitem>
|
---|
51 | <listitem>
|
---|
52 | <para>
|
---|
53 | Download MD5 sum: &p11-kit-md5sum;
|
---|
54 | </para>
|
---|
55 | </listitem>
|
---|
56 | <listitem>
|
---|
57 | <para>
|
---|
58 | Download size: &p11-kit-size;
|
---|
59 | </para>
|
---|
60 | </listitem>
|
---|
61 | <listitem>
|
---|
62 | <para>
|
---|
63 | Estimated disk space required: &p11-kit-buildsize;
|
---|
64 | </para>
|
---|
65 | </listitem>
|
---|
66 | <listitem>
|
---|
67 | <para>
|
---|
68 | Estimated build time: &p11-kit-time;
|
---|
69 | </para>
|
---|
70 | </listitem>
|
---|
71 | </itemizedlist>
|
---|
72 |
|
---|
73 | <bridgehead renderas="sect3">p11-kit Dependencies</bridgehead>
|
---|
74 |
|
---|
75 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
76 | <para role="recommended">
|
---|
77 | <xref linkend="libtasn1"/>
|
---|
78 | </para>
|
---|
79 |
|
---|
80 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
81 | <para role="optional">
|
---|
82 | <xref linkend="make-ca"/> (runtime),
|
---|
83 | <xref linkend="nss"/> (runtime),
|
---|
84 | <xref linkend="gtk-doc"/> and
|
---|
85 | <xref linkend="libxslt"/>
|
---|
86 | </para>
|
---|
87 |
|
---|
88 | <para condition="html" role="usernotes">User Notes:
|
---|
89 | <ulink url="&blfs-wiki;/p11-kit"/>
|
---|
90 | </para>
|
---|
91 | </sect2>
|
---|
92 |
|
---|
93 | <sect2 role="installation">
|
---|
94 | <title>Installation of p11-kit</title>
|
---|
95 |
|
---|
96 | <para>Prepare the distribution specific anchor hook:</para>
|
---|
97 |
|
---|
98 | <screen><userinput>sed '20,$ d' -i trust/trust-extract-compat.in &&
|
---|
99 | cat >> trust/trust-extract-compat.in << "EOF"
|
---|
100 | echo "Please create an OpenSSL Trusted Certificate with appropriate"
|
---|
101 | echo "trust arguments in /etc/ssl/local/ and run '/usr/sbin/make-ca -f'"
|
---|
102 | echo "as the root user."
|
---|
103 | exit 1
|
---|
104 | EOF</userinput></screen>
|
---|
105 |
|
---|
106 | <para>
|
---|
107 | Install <application>p11-kit</application> by running the following
|
---|
108 | commands:
|
---|
109 | </para>
|
---|
110 |
|
---|
111 | <screen><userinput>./configure --prefix=/usr \
|
---|
112 | --sysconfdir=/etc \
|
---|
113 | --with-trust-paths=/etc/pki/anchors &&
|
---|
114 | make</userinput></screen>
|
---|
115 |
|
---|
116 | <para>
|
---|
117 | To test the results, issue: <command>make check</command>.
|
---|
118 | One test, test-token 6, is known to fail.
|
---|
119 | </para>
|
---|
120 |
|
---|
121 | <para>
|
---|
122 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
123 | </para>
|
---|
124 |
|
---|
125 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
126 |
|
---|
127 | </sect2>
|
---|
128 |
|
---|
129 | <sect2 role="commands">
|
---|
130 | <title>Command Explanations</title>
|
---|
131 |
|
---|
132 | <para>
|
---|
133 | <parameter>--with-trust-paths=/etc/pki/anchors</parameter>: this switch
|
---|
134 | sets the location of trusted certificates used by libp11-kit.so.
|
---|
135 | </para>
|
---|
136 |
|
---|
137 | <para>
|
---|
138 | <option>--with-hash-impl=freebl</option>: Use this switch if you want to
|
---|
139 | use the Freebl library from <application>NSS</application> for SHA1 and
|
---|
140 | MD5 hashing.
|
---|
141 | </para>
|
---|
142 |
|
---|
143 | <para>
|
---|
144 | <option>--enable-doc</option>: Use this switch if you have installed
|
---|
145 | <xref linkend="gtk-doc"/> and <xref linkend="libxslt"/> and wish to
|
---|
146 | rebuild the documentation and generate manual pages.
|
---|
147 | </para>
|
---|
148 |
|
---|
149 | </sect2>
|
---|
150 |
|
---|
151 | <sect2 role="configuration">
|
---|
152 | <title>Configuring p11-kit</title>
|
---|
153 |
|
---|
154 | <para>The <application>p11-kit</application> trust module
|
---|
155 | (<filename>/usr/lib/pkcs11/p11-kit-trust.so</filename>) can be used as a
|
---|
156 | drop-in replacement for <filename>/usr/lib/libnssckbi.so</filename> to
|
---|
157 | transparently make the system CAs available to
|
---|
158 | <application>NSS</application> aware applications, rather than the static
|
---|
159 | list provided by <filename>/usr/lib/libnssckbi.so</filename>. As the
|
---|
160 | <systemitem class="username">root</systemitem> user, execute the following
|
---|
161 | commands:</para>
|
---|
162 |
|
---|
163 | <screen role="root"><userinput>if [ -e /usr/lib/libnssckbi.so ]; then
|
---|
164 | readlink /usr/lib/libnssckbi.so ||
|
---|
165 | rm -v /usr/lib/libnssckbi.so &&
|
---|
166 | ln -sfv ./pkcs11/p11-kit-trust.so /usr/lib/libnssckbi.so
|
---|
167 | fi</userinput></screen>
|
---|
168 |
|
---|
169 | </sect2>
|
---|
170 |
|
---|
171 | <sect2 role="content">
|
---|
172 | <title>Contents</title>
|
---|
173 |
|
---|
174 | <segmentedlist>
|
---|
175 | <segtitle>Installed Programs</segtitle>
|
---|
176 | <segtitle>Installed Libraries</segtitle>
|
---|
177 | <segtitle>Installed Directories</segtitle>
|
---|
178 |
|
---|
179 | <seglistitem>
|
---|
180 | <seg>
|
---|
181 | p11-kit and trust
|
---|
182 | </seg>
|
---|
183 | <seg>
|
---|
184 | libp11-kit.so and p11-kit-proxy.so
|
---|
185 | </seg>
|
---|
186 | <seg>
|
---|
187 | /etc/pkcs11,
|
---|
188 | /usr/include/p11-kit-1,
|
---|
189 | /usr/lib/{p11-kit,pkcs11},
|
---|
190 | /usr/share/gtk-doc/html/p11-kit, and
|
---|
191 | /usr/share/p11-kit
|
---|
192 | </seg>
|
---|
193 | </seglistitem>
|
---|
194 | </segmentedlist>
|
---|
195 |
|
---|
196 | <variablelist>
|
---|
197 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
198 | <?dbfo list-presentation="list"?>
|
---|
199 | <?dbhtml list-presentation="table"?>
|
---|
200 |
|
---|
201 | <varlistentry id="p11-kit-prog">
|
---|
202 | <term><command>p11-kit</command></term>
|
---|
203 | <listitem>
|
---|
204 | <para>
|
---|
205 | is a command line tool that can be used to perform operations
|
---|
206 | on PKCS#11 modules configured on the system.
|
---|
207 | </para>
|
---|
208 | <indexterm zone="p11-kit p11-kit-prog">
|
---|
209 | <primary sortas="b-p11-kit">p11-kit</primary>
|
---|
210 | </indexterm>
|
---|
211 | </listitem>
|
---|
212 | </varlistentry>
|
---|
213 |
|
---|
214 | <varlistentry id="trust">
|
---|
215 | <term><command>trust</command></term>
|
---|
216 | <listitem>
|
---|
217 | <para>
|
---|
218 | is a command line tool to examine and modify the shared trust
|
---|
219 | policy store.
|
---|
220 | </para>
|
---|
221 | <indexterm zone="p11-kit trust">
|
---|
222 | <primary sortas="b-trust">trust</primary>
|
---|
223 | </indexterm>
|
---|
224 | </listitem>
|
---|
225 | </varlistentry>
|
---|
226 |
|
---|
227 |
|
---|
228 | <varlistentry id="libp11-kit">
|
---|
229 | <term><filename class="libraryfile">libp11-kit.so</filename></term>
|
---|
230 | <listitem>
|
---|
231 | <para>
|
---|
232 | contains functions used to coordinate initialization and
|
---|
233 | finalization of any PKCS#11 module.
|
---|
234 | </para>
|
---|
235 | <indexterm zone="p11-kit libp11-kit">
|
---|
236 | <primary sortas="c-libp11-kit">libp11-kit.so</primary>
|
---|
237 | </indexterm>
|
---|
238 | </listitem>
|
---|
239 | </varlistentry>
|
---|
240 |
|
---|
241 | <varlistentry id="p11-kit-proxy">
|
---|
242 | <term><filename class="libraryfile">p11-kit-proxy.so</filename></term>
|
---|
243 | <listitem>
|
---|
244 | <para>
|
---|
245 | is the PKCS#11 proxy module.
|
---|
246 | </para>
|
---|
247 | <indexterm zone="p11-kit p11-kit-proxy">
|
---|
248 | <primary sortas="c-p11-kit-proxy">p11-kit-proxy.so</primary>
|
---|
249 | </indexterm>
|
---|
250 | </listitem>
|
---|
251 | </varlistentry>
|
---|
252 |
|
---|
253 | </variablelist>
|
---|
254 |
|
---|
255 | </sect2>
|
---|
256 |
|
---|
257 | </sect1>
|
---|