source: postlfs/security/p11-kit.xml@ 8d9de85

11.0 11.1 11.2 11.3 12.0 12.1 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 8d9de85 was 45ab6c7, checked in by Xi Ruoyao <xry111@…>, 3 years ago

more SVN prop clean up

Remove "$LastChanged$" everywhere, and also some unused $Date$

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