source: postlfs/security/p11-kit.xml@ f1ba5f96

12.0 12.1 ken/TL2024 ken/tuningfonts lazarus plabs/newcss python3.11 rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18
Last change on this file since f1ba5f96 was d95049a9, checked in by Bruce Dubbs <bdubbs@…>, 12 months ago

Update to p11-kit-0.25.0.

  • Property mode set to 100644
File size: 8.6 KB
Line 
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.xz">
8 <!ENTITY p11-kit-download-ftp " ">
9 <!ENTITY p11-kit-md5sum "9fcb1ec80b5d083dd9b34122fa7c3c23">
10 <!ENTITY p11-kit-size "940 KB">
11 <!ENTITY p11-kit-buildsize "90 MB (with tests)">
12 <!ENTITY p11-kit-time "0.6 SBU (with tests)">
13]>
14
15<sect1 id="p11-kit" xreflabel="p11-kit-&p11-kit-version;">
16 <?dbhtml filename="p11-kit.html"?>
17
18
19 <title>p11-kit-&p11-kit-version;</title>
20
21 <indexterm zone="p11-kit">
22 <primary sortas="a-p11-kit">p11-kit</primary>
23 </indexterm>
24
25 <sect2 role="package">
26 <title>Introduction to p11-kit</title>
27
28 <para>
29 The <application>p11-kit</application> package provides a way to load and
30 enumerate PKCS #11 (a Cryptographic Token Interface Standard) modules.
31 </para>
32
33 &lfs113_checked;
34
35 <bridgehead renderas="sect3">Package Information</bridgehead>
36 <itemizedlist spacing="compact">
37 <listitem>
38 <para>
39 Download (HTTP): <ulink url="&p11-kit-download-http;"/>
40 </para>
41 </listitem>
42 <listitem>
43 <para>
44 Download (FTP): <ulink url="&p11-kit-download-ftp;"/>
45 </para>
46 </listitem>
47 <listitem>
48 <para>
49 Download MD5 sum: &p11-kit-md5sum;
50 </para>
51 </listitem>
52 <listitem>
53 <para>
54 Download size: &p11-kit-size;
55 </para>
56 </listitem>
57 <listitem>
58 <para>
59 Estimated disk space required: &p11-kit-buildsize;
60 </para>
61 </listitem>
62 <listitem>
63 <para>
64 Estimated build time: &p11-kit-time;
65 </para>
66 </listitem>
67 </itemizedlist>
68
69 <bridgehead renderas="sect3">p11-kit Dependencies</bridgehead>
70
71 <!-- There is a check for libsystemd. It seems to install a systemd service
72 in /usr/lib/systemd/user.-->
73 <bridgehead renderas="sect4">Recommended</bridgehead>
74 <para role="recommended">
75 <xref linkend="libtasn1"/>
76 </para>
77
78 <bridgehead renderas="sect4">Recommended (runtime)</bridgehead>
79 <para role="recommended">
80 <xref role="runtime" linkend="make-ca"/>
81 </para>
82
83 <bridgehead renderas="sect4">Optional</bridgehead>
84 <para role="optional">
85 <xref linkend="gtk-doc"/>,
86 <xref linkend="libxslt"/>, and
87 <xref role="runtime" linkend="nss"/> (runtime)
88 </para>
89
90 </sect2>
91
92 <sect2 role="installation">
93 <title>Installation of p11-kit</title>
94
95 <para>
96 Prepare the distribution specific anchor hook:
97 </para>
98
99<screen><userinput>sed '20,$ d' -i trust/trust-extract-compat &amp;&amp;
100cat &gt;&gt; trust/trust-extract-compat &lt;&lt; "EOF"
101<literal># Copy existing anchor modifications to /etc/ssl/local
102/usr/libexec/make-ca/copy-trust-modifications
103
104# Update trust stores
105/usr/sbin/make-ca -r</literal>
106EOF</userinput></screen>
107
108 <para>
109 Install <application>p11-kit</application> by running the following
110 commands:
111 </para>
112
113<screen><userinput>mkdir p11-build &amp;&amp;
114cd p11-build &amp;&amp;
115
116meson setup .. \
117 --prefix=/usr \
118 --buildtype=release \
119 -Dtrust_paths=/etc/pki/anchors &amp;&amp;
120ninja</userinput></screen>
121
122 <para>
123 To test the results, issue: <command>ninja test</command>.
124 </para>
125
126 <para>
127 Now, as the <systemitem class="username">root</systemitem> user:
128 </para>
129
130<screen role="root"><userinput>ninja install &amp;&amp;
131ln -sfv /usr/libexec/p11-kit/trust-extract-compat \
132 /usr/bin/update-ca-certificates</userinput></screen>
133
134 </sect2>
135
136 <sect2 role="commands">
137 <title>Command Explanations</title>
138
139 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
140 href="../../xincludes/meson-buildtype-release.xml"/>
141
142 <para>
143 <parameter>-Dtrust_paths=/etc/pki/anchors</parameter>: this switch
144 sets the location of trusted certificates used by libp11-kit.so.
145 </para>
146
147 <para>
148 <option>-Dhash_impl=freebl</option>: Use this switch if you want to
149 use the Freebl library from <application>NSS</application> for SHA1 and
150 MD5 hashing.
151 </para>
152
153 <para>
154 <option>-Dgtk_doc=true</option>: Use this switch if you have installed
155 <xref linkend="gtk-doc"/> and <xref linkend="libxslt"/> and wish to
156 rebuild the documentation and generate manual pages.
157 </para>
158
159 </sect2>
160
161 <sect2 role="configuration">
162 <title>Configuring p11-kit</title>
163
164 <para>
165 The <application>p11-kit</application> trust module
166 (<filename>/usr/lib/pkcs11/p11-kit-trust.so</filename>) can be used as a
167 drop-in replacement for <filename>/usr/lib/libnssckbi.so</filename> to
168 transparently make the system CAs available to
169 <application>NSS</application> aware applications, rather than the static
170 list provided by <filename>/usr/lib/libnssckbi.so</filename>. As the
171 <systemitem class="username">root</systemitem> user, execute the
172 following commands:
173 </para>
174
175<screen role="root"><userinput>ln -sfv ./pkcs11/p11-kit-trust.so /usr/lib/libnssckbi.so</userinput></screen>
176
177 </sect2>
178
179 <sect2 role="content">
180 <title>Contents</title>
181
182 <segmentedlist>
183 <segtitle>Installed Programs</segtitle>
184 <segtitle>Installed Libraries</segtitle>
185 <segtitle>Installed Directories</segtitle>
186
187 <seglistitem>
188 <seg>
189 p11-kit, trust, and update-ca-certificates
190 </seg>
191 <seg>
192 libp11-kit.so and p11-kit-proxy.so
193 </seg>
194 <seg>
195 /etc/pkcs11,
196 /usr/include/p11-kit-1,
197 /usr/lib/pkcs11,
198 /usr/libexec/p11-kit,
199 /usr/share/gtk-doc/html/p11-kit, and
200 /usr/share/p11-kit
201 </seg>
202 </seglistitem>
203 </segmentedlist>
204
205 <variablelist>
206 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
207 <?dbfo list-presentation="list"?>
208 <?dbhtml list-presentation="table"?>
209
210 <varlistentry id="p11-kit-prog">
211 <term><command>p11-kit</command></term>
212 <listitem>
213 <para>
214 is a command line tool that can be used to perform operations
215 on PKCS#11 modules configured on the system
216 </para>
217 <indexterm zone="p11-kit p11-kit-prog">
218 <primary sortas="b-p11-kit">p11-kit</primary>
219 </indexterm>
220 </listitem>
221 </varlistentry>
222
223 <varlistentry id="trust">
224 <term><command>trust</command></term>
225 <listitem>
226 <para>
227 is a command line tool to examine and modify the shared trust
228 policy store
229 </para>
230 <indexterm zone="p11-kit trust">
231 <primary sortas="b-trust">trust</primary>
232 </indexterm>
233 </listitem>
234 </varlistentry>
235
236 <varlistentry id="update-ca-certificates">
237 <term><command>update-ca-certificates</command></term>
238 <listitem>
239 <para>
240 is a command line tool to both extract local certificates from an
241 updated anchor store, and regenerate all anchors and certificate
242 stores on the system. This is done unconditionally on BLFS using
243 the <parameter>--force</parameter> and <parameter>--get</parameter>
244 flags to <command>make-ca</command> and should likely not be used
245 for automated updates
246 </para>
247 <indexterm zone="p11-kit update-ca-certificates">
248 <primary sortas="b-update-ca-certificates">update-ca-certificates</primary>
249 </indexterm>
250 </listitem>
251 </varlistentry>
252
253 <varlistentry id="libp11-kit">
254 <term><filename class="libraryfile">libp11-kit.so</filename></term>
255 <listitem>
256 <para>
257 contains functions used to coordinate initialization and
258 finalization of any PKCS#11 module
259 </para>
260 <indexterm zone="p11-kit libp11-kit">
261 <primary sortas="c-libp11-kit">libp11-kit.so</primary>
262 </indexterm>
263 </listitem>
264 </varlistentry>
265
266 <varlistentry id="p11-kit-proxy">
267 <term><filename class="libraryfile">p11-kit-proxy.so</filename></term>
268 <listitem>
269 <para>
270 is the PKCS#11 proxy module
271 </para>
272 <indexterm zone="p11-kit p11-kit-proxy">
273 <primary sortas="c-p11-kit-proxy">p11-kit-proxy.so</primary>
274 </indexterm>
275 </listitem>
276 </varlistentry>
277
278 </variablelist>
279
280 </sect2>
281
282</sect1>
Note: See TracBrowser for help on using the repository browser.