source: postlfs/security/p11-kit.xml@ 02e3bbc8

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 8.4 9.0 9.1 bdubbs/svn kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 02e3bbc8 was 02e3bbc8, checked in by DJ Lucas <dj@…>, 5 years ago

Update to make-ca-1.2 and adjust p11-kit configuration for new copy-trust-modifications script.
Correct weekly cron job commands for update-pciids.sh and update-usbids.sh, as well as add update-pki.sh.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@20905 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 8.3 KB
RevLine 
[691bb91]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
[dcad3e9]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">
[691bb91]8 <!ENTITY p11-kit-download-ftp " ">
[4d7d99d]9 <!ENTITY p11-kit-md5sum "85e1cdb5fce0087711ba2521975f0420">
[70cc9b6]10 <!ENTITY p11-kit-size "1.2 MB">
[4d7d99d]11 <!ENTITY p11-kit-buildsize "45 MB (add 168 MB for tests)">
[70cc9b6]12 <!ENTITY p11-kit-time "0.4 SBU (add 0.6 SBU for tests)">
[691bb91]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
[70c0ef4]32 <para>
[b7d3195]33 The <application>p11-kit</application> package provides a way to load and
[70c0ef4]34 enumerate PKCS #11 (a Cryptographic Token Interface Standard) modules.
[691bb91]35 </para>
36
[a509a18]37 &lfs83_checked;
[691bb91]38
39 <bridgehead renderas="sect3">Package Information</bridgehead>
40 <itemizedlist spacing="compact">
41 <listitem>
[70c0ef4]42 <para>
43 Download (HTTP): <ulink url="&p11-kit-download-http;"/>
44 </para>
[691bb91]45 </listitem>
46 <listitem>
[70c0ef4]47 <para>
48 Download (FTP): <ulink url="&p11-kit-download-ftp;"/>
49 </para>
[691bb91]50 </listitem>
51 <listitem>
[70c0ef4]52 <para>
53 Download MD5 sum: &p11-kit-md5sum;
54 </para>
[691bb91]55 </listitem>
56 <listitem>
[70c0ef4]57 <para>
58 Download size: &p11-kit-size;
59 </para>
[691bb91]60 </listitem>
61 <listitem>
[70c0ef4]62 <para>
63 Estimated disk space required: &p11-kit-buildsize;
64 </para>
[691bb91]65 </listitem>
66 <listitem>
[70c0ef4]67 <para>
68 Estimated build time: &p11-kit-time;
69 </para>
[691bb91]70 </listitem>
71 </itemizedlist>
72
[70c0ef4]73 <bridgehead renderas="sect3">p11-kit Dependencies</bridgehead>
74
[4c39aff]75 <bridgehead renderas="sect4">Recommended</bridgehead>
76 <para role="recommended">
[60ddbaf]77 <xref linkend="libtasn1"/>
[4c39aff]78 </para>
79
[70c0ef4]80 <bridgehead renderas="sect4">Optional</bridgehead>
81 <para role="optional">
[c1cd435e]82 <xref linkend="make-ca"/> (runtime),
83 <xref linkend="nss"/> (runtime),
[4c39aff]84 <xref linkend="gtk-doc"/> and
85 <xref linkend="libxslt"/>
[70c0ef4]86 </para>
[691bb91]87
[70c0ef4]88 <para condition="html" role="usernotes">User Notes:
89 <ulink url="&blfs-wiki;/p11-kit"/>
90 </para>
[691bb91]91 </sect2>
92
93 <sect2 role="installation">
94 <title>Installation of p11-kit</title>
95
[f5e51f4]96 <para>Prepare the distribution specific anchor hook:</para>
97
98<screen><userinput>sed '20,$ d' -i trust/trust-extract-compat.in &amp;&amp;
99cat &gt;&gt; trust/trust-extract-compat.in &lt;&lt; "EOF"
[02e3bbc8]100<literal># Copy existing anchor modifications to /etc/ssl/local
101/usr/libexec/make-ca/copy-trust-modifications
[d973faf]102
103# Generate a new trust store
[02e3bbc8]104/usr/sbin/make-ca -f -g</literal>
[f5e51f4]105EOF</userinput></screen>
106
[70c0ef4]107 <para>
108 Install <application>p11-kit</application> by running the following
109 commands:
110 </para>
[691bb91]111
[9cdbbe9]112<screen><userinput>./configure --prefix=/usr \
113 --sysconfdir=/etc \
114 --with-trust-paths=/etc/pki/anchors &amp;&amp;
[691bb91]115make</userinput></screen>
116
[70c0ef4]117 <para>
[0065e69]118 To test the results, issue: <command>make check</command>.
[4d7d99d]119 One test, test-token 6, is known to fail.
[70c0ef4]120 </para>
[691bb91]121
[70c0ef4]122 <para>
123 Now, as the <systemitem class="username">root</systemitem> user:
124 </para>
[691bb91]125
[d973faf]126<screen role="root"><userinput>make install &amp;&amp;
127ln -s /usr/libexec/p11-kit/trust-extract-compat \
128 /usr/bin/update-ca-certificates</userinput></screen>
[691bb91]129
130 </sect2>
131
132 <sect2 role="commands">
133 <title>Command Explanations</title>
134
[4a16903]135 <para>
136 <parameter>--with-trust-paths=/etc/pki/anchors</parameter>: this switch
137 sets the location of trusted certificates used by libp11-kit.so.
138 </para>
139
[d055428]140 <para>
141 <option>--with-hash-impl=freebl</option>: Use this switch if you want to
[f586237]142 use the Freebl library from <application>NSS</application> for SHA1 and
143 MD5 hashing.
[d055428]144 </para>
145
[4c39aff]146 <para>
147 <option>--enable-doc</option>: Use this switch if you have installed
148 <xref linkend="gtk-doc"/> and <xref linkend="libxslt"/> and wish to
149 rebuild the documentation and generate manual pages.
150 </para>
[691bb91]151
152 </sect2>
153
[4a16903]154 <sect2 role="configuration">
155 <title>Configuring p11-kit</title>
156
[1ac799b]157 <para>The <application>p11-kit</application> trust module
158 (<filename>/usr/lib/pkcs11/p11-kit-trust.so</filename>) can be used as a
159 drop-in replacement for <filename>/usr/lib/libnssckbi.so</filename> to
[4a16903]160 transparently make the system CAs available to
161 <application>NSS</application> aware applications, rather than the static
162 list provided by <filename>/usr/lib/libnssckbi.so</filename>. As the
163 <systemitem class="username">root</systemitem> user, execute the following
164 commands:</para>
165
[b2c18590]166<screen role="root"><userinput>if [ -e /usr/lib/libnssckbi.so ]; then
167 readlink /usr/lib/libnssckbi.so ||
168 rm -v /usr/lib/libnssckbi.so &amp;&amp;
[1ac799b]169 ln -sfv ./pkcs11/p11-kit-trust.so /usr/lib/libnssckbi.so
[b2c18590]170fi</userinput></screen>
[4a16903]171
172 </sect2>
173
[691bb91]174 <sect2 role="content">
175 <title>Contents</title>
176
177 <segmentedlist>
[f5e51f4]178 <segtitle>Installed Programs</segtitle>
[691bb91]179 <segtitle>Installed Libraries</segtitle>
180 <segtitle>Installed Directories</segtitle>
181
182 <seglistitem>
[70c0ef4]183 <seg>
[d055428]184 p11-kit and trust
[70c0ef4]185 </seg>
186 <seg>
[1c14a239]187 libp11-kit.so and p11-kit-proxy.so
[70c0ef4]188 </seg>
189 <seg>
190 /etc/pkcs11,
[4c39aff]191 /usr/include/p11-kit-1,
[a1f2d184]192 /usr/lib/{p11-kit,pkcs11},
[2955093]193 /usr/share/gtk-doc/html/p11-kit, and
[4c39aff]194 /usr/share/p11-kit
[70c0ef4]195 </seg>
[691bb91]196 </seglistitem>
197 </segmentedlist>
198
199 <variablelist>
200 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
201 <?dbfo list-presentation="list"?>
202 <?dbhtml list-presentation="table"?>
203
[4c39aff]204 <varlistentry id="p11-kit-prog">
205 <term><command>p11-kit</command></term>
206 <listitem>
207 <para>
208 is a command line tool that can be used to perform operations
209 on PKCS#11 modules configured on the system.
210 </para>
211 <indexterm zone="p11-kit p11-kit-prog">
212 <primary sortas="b-p11-kit">p11-kit</primary>
213 </indexterm>
214 </listitem>
215 </varlistentry>
216
[72d90b67]217 <varlistentry id="trust">
218 <term><command>trust</command></term>
219 <listitem>
220 <para>
221 is a command line tool to examine and modify the shared trust
222 policy store.
223 </para>
224 <indexterm zone="p11-kit trust">
225 <primary sortas="b-trust">trust</primary>
226 </indexterm>
227 </listitem>
228 </varlistentry>
229
[d973faf]230 <varlistentry id="update-ca-certificates">
231 <term><command>update-ca-certificates</command></term>
232 <listitem>
233 <para>
234 is a command line tool to both extract local certificates from an
235 upadated anchor store, and regenerate all anchors and certificate
236 stores on the system.
237 </para>
238 <indexterm zone="p11-kit update-ca-certificates">
239 <primary sortas="b-trust">update-ca-certificates</primary>
240 </indexterm>
241 </listitem>
242 </varlistentry>
[72d90b67]243
[691bb91]244 <varlistentry id="libp11-kit">
[8835dbde]245 <term><filename class="libraryfile">libp11-kit.so</filename></term>
[691bb91]246 <listitem>
[70c0ef4]247 <para>
[0d7900a]248 contains functions used to coordinate initialization and
[70c0ef4]249 finalization of any PKCS#11 module.
250 </para>
[691bb91]251 <indexterm zone="p11-kit libp11-kit">
252 <primary sortas="c-libp11-kit">libp11-kit.so</primary>
253 </indexterm>
254 </listitem>
255 </varlistentry>
256
257 <varlistentry id="p11-kit-proxy">
[8835dbde]258 <term><filename class="libraryfile">p11-kit-proxy.so</filename></term>
[691bb91]259 <listitem>
[70c0ef4]260 <para>
261 is the PKCS#11 proxy module.
262 </para>
[691bb91]263 <indexterm zone="p11-kit p11-kit-proxy">
264 <primary sortas="c-p11-kit-proxy">p11-kit-proxy.so</primary>
265 </indexterm>
266 </listitem>
267 </varlistentry>
268
269 </variablelist>
270
271 </sect2>
272
273</sect1>
Note: See TracBrowser for help on using the repository browser.