[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 " ">
|
---|
[811f63df] | 9 | <!ENTITY p11-kit-md5sum "67b2539bdca6b4bedaeecc12864d2796">
|
---|
| 10 | <!ENTITY p11-kit-size "820 KB">
|
---|
[9c7363e] | 11 | <!ENTITY p11-kit-buildsize "44 MB (with tests)">
|
---|
[811f63df] | 12 | <!ENTITY p11-kit-time "0.5 SBU (with 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 |
|
---|
[ecc2386] | 36 | &lfs112_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 &&
|
---|
| 102 | cat >> trust/trust-extract-compat << "EOF"
|
---|
[02e3bbc8] | 103 | <literal># Copy existing anchor modifications to /etc/ssl/local
|
---|
| 104 | /usr/libexec/make-ca/copy-trust-modifications
|
---|
[d973faf] | 105 |
|
---|
[6133936] | 106 | # Update trust stores
|
---|
| 107 | /usr/sbin/make-ca -r</literal>
|
---|
[f5e51f4] | 108 | EOF</userinput></screen>
|
---|
| 109 |
|
---|
[70c0ef4] | 110 | <para>
|
---|
| 111 | Install <application>p11-kit</application> by running the following
|
---|
| 112 | commands:
|
---|
| 113 | </para>
|
---|
[691bb91] | 114 |
|
---|
[bb37db9] | 115 | <screen><userinput>mkdir p11-build &&
|
---|
| 116 | cd p11-build &&
|
---|
[307e799] | 117 |
|
---|
| 118 | meson --prefix=/usr \
|
---|
| 119 | --buildtype=release \
|
---|
| 120 | -Dtrust_paths=/etc/pki/anchors &&
|
---|
| 121 | ninja</userinput></screen>
|
---|
[691bb91] | 122 |
|
---|
[70c0ef4] | 123 | <para>
|
---|
[8558044] | 124 | To test the results, issue: <command>ninja test</command>.
|
---|
[70c0ef4] | 125 | </para>
|
---|
[691bb91] | 126 |
|
---|
[70c0ef4] | 127 | <para>
|
---|
| 128 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 129 | </para>
|
---|
[691bb91] | 130 |
|
---|
[307e799] | 131 | <screen role="root"><userinput>ninja install &&
|
---|
[60424b6] | 132 | ln -sfv /usr/libexec/p11-kit/trust-extract-compat \
|
---|
| 133 | /usr/bin/update-ca-certificates</userinput></screen>
|
---|
[691bb91] | 134 |
|
---|
| 135 | </sect2>
|
---|
| 136 |
|
---|
| 137 | <sect2 role="commands">
|
---|
| 138 | <title>Command Explanations</title>
|
---|
| 139 |
|
---|
[3918112a] | 140 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 141 | href="../../xincludes/meson-buildtype-release.xml"/>
|
---|
[307e799] | 142 |
|
---|
| 143 | <para>
|
---|
| 144 | <parameter>-Dtrust_paths=/etc/pki/anchors</parameter>: this switch
|
---|
[4a16903] | 145 | sets the location of trusted certificates used by libp11-kit.so.
|
---|
| 146 | </para>
|
---|
| 147 |
|
---|
[d055428] | 148 | <para>
|
---|
[307e799] | 149 | <option>-Dhash_impl=freebl</option>: Use this switch if you want to
|
---|
[f586237] | 150 | use the Freebl library from <application>NSS</application> for SHA1 and
|
---|
| 151 | MD5 hashing.
|
---|
[d055428] | 152 | </para>
|
---|
| 153 |
|
---|
[4c39aff] | 154 | <para>
|
---|
[307e799] | 155 | <option>-Dgtk_doc=true</option>: Use this switch if you have installed
|
---|
[4c39aff] | 156 | <xref linkend="gtk-doc"/> and <xref linkend="libxslt"/> and wish to
|
---|
| 157 | rebuild the documentation and generate manual pages.
|
---|
| 158 | </para>
|
---|
[691bb91] | 159 |
|
---|
| 160 | </sect2>
|
---|
| 161 |
|
---|
[4a16903] | 162 | <sect2 role="configuration">
|
---|
| 163 | <title>Configuring p11-kit</title>
|
---|
| 164 |
|
---|
[47274444] | 165 | <para>
|
---|
| 166 | The <application>p11-kit</application> trust module
|
---|
| 167 | (<filename>/usr/lib/pkcs11/p11-kit-trust.so</filename>) can be used as a
|
---|
| 168 | drop-in replacement for <filename>/usr/lib/libnssckbi.so</filename> to
|
---|
| 169 | transparently make the system CAs available to
|
---|
| 170 | <application>NSS</application> aware applications, rather than the static
|
---|
| 171 | list provided by <filename>/usr/lib/libnssckbi.so</filename>. As the
|
---|
| 172 | <systemitem class="username">root</systemitem> user, execute the
|
---|
| 173 | following commands:
|
---|
| 174 | </para>
|
---|
[4a16903] | 175 |
|
---|
[5c69a2d] | 176 | <screen role="root"><userinput>ln -sfv ./pkcs11/p11-kit-trust.so /usr/lib/libnssckbi.so</userinput></screen>
|
---|
[4a16903] | 177 |
|
---|
| 178 | </sect2>
|
---|
| 179 |
|
---|
[691bb91] | 180 | <sect2 role="content">
|
---|
| 181 | <title>Contents</title>
|
---|
| 182 |
|
---|
| 183 | <segmentedlist>
|
---|
[f5e51f4] | 184 | <segtitle>Installed Programs</segtitle>
|
---|
[691bb91] | 185 | <segtitle>Installed Libraries</segtitle>
|
---|
| 186 | <segtitle>Installed Directories</segtitle>
|
---|
| 187 |
|
---|
| 188 | <seglistitem>
|
---|
[70c0ef4] | 189 | <seg>
|
---|
[c45f906] | 190 | p11-kit, trust, and update-ca-certificates
|
---|
[70c0ef4] | 191 | </seg>
|
---|
| 192 | <seg>
|
---|
[1c14a239] | 193 | libp11-kit.so and p11-kit-proxy.so
|
---|
[70c0ef4] | 194 | </seg>
|
---|
| 195 | <seg>
|
---|
| 196 | /etc/pkcs11,
|
---|
[4c39aff] | 197 | /usr/include/p11-kit-1,
|
---|
[c45f906] | 198 | /usr/lib/pkcs11,
|
---|
| 199 | /usr/libexec/p11-kit,
|
---|
[2955093] | 200 | /usr/share/gtk-doc/html/p11-kit, and
|
---|
[4c39aff] | 201 | /usr/share/p11-kit
|
---|
[70c0ef4] | 202 | </seg>
|
---|
[691bb91] | 203 | </seglistitem>
|
---|
| 204 | </segmentedlist>
|
---|
| 205 |
|
---|
| 206 | <variablelist>
|
---|
| 207 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 208 | <?dbfo list-presentation="list"?>
|
---|
| 209 | <?dbhtml list-presentation="table"?>
|
---|
| 210 |
|
---|
[4c39aff] | 211 | <varlistentry id="p11-kit-prog">
|
---|
| 212 | <term><command>p11-kit</command></term>
|
---|
| 213 | <listitem>
|
---|
| 214 | <para>
|
---|
| 215 | is a command line tool that can be used to perform operations
|
---|
[4c24eb0a] | 216 | on PKCS#11 modules configured on the system
|
---|
[4c39aff] | 217 | </para>
|
---|
| 218 | <indexterm zone="p11-kit p11-kit-prog">
|
---|
| 219 | <primary sortas="b-p11-kit">p11-kit</primary>
|
---|
| 220 | </indexterm>
|
---|
| 221 | </listitem>
|
---|
| 222 | </varlistentry>
|
---|
| 223 |
|
---|
[72d90b67] | 224 | <varlistentry id="trust">
|
---|
| 225 | <term><command>trust</command></term>
|
---|
| 226 | <listitem>
|
---|
| 227 | <para>
|
---|
| 228 | is a command line tool to examine and modify the shared trust
|
---|
[4c24eb0a] | 229 | policy store
|
---|
[72d90b67] | 230 | </para>
|
---|
| 231 | <indexterm zone="p11-kit trust">
|
---|
| 232 | <primary sortas="b-trust">trust</primary>
|
---|
| 233 | </indexterm>
|
---|
| 234 | </listitem>
|
---|
| 235 | </varlistentry>
|
---|
| 236 |
|
---|
[d973faf] | 237 | <varlistentry id="update-ca-certificates">
|
---|
| 238 | <term><command>update-ca-certificates</command></term>
|
---|
| 239 | <listitem>
|
---|
| 240 | <para>
|
---|
| 241 | is a command line tool to both extract local certificates from an
|
---|
[c45f906] | 242 | updated anchor store, and regenerate all anchors and certificate
|
---|
[47274444] | 243 | stores on the system. This is done unconditionally on BLFS using
|
---|
[254e3bf] | 244 | the <parameter>--force</parameter> and <parameter>--get</parameter>
|
---|
| 245 | flags to <command>make-ca</command> and should likely not be used
|
---|
[4c24eb0a] | 246 | for automated updates
|
---|
[d973faf] | 247 | </para>
|
---|
| 248 | <indexterm zone="p11-kit update-ca-certificates">
|
---|
[254e3bf] | 249 | <primary sortas="b-update-ca-certificates">update-ca-certificates</primary>
|
---|
[d973faf] | 250 | </indexterm>
|
---|
| 251 | </listitem>
|
---|
| 252 | </varlistentry>
|
---|
[72d90b67] | 253 |
|
---|
[691bb91] | 254 | <varlistentry id="libp11-kit">
|
---|
[8835dbde] | 255 | <term><filename class="libraryfile">libp11-kit.so</filename></term>
|
---|
[691bb91] | 256 | <listitem>
|
---|
[70c0ef4] | 257 | <para>
|
---|
[0d7900a] | 258 | contains functions used to coordinate initialization and
|
---|
[4c24eb0a] | 259 | finalization of any PKCS#11 module
|
---|
[70c0ef4] | 260 | </para>
|
---|
[691bb91] | 261 | <indexterm zone="p11-kit libp11-kit">
|
---|
| 262 | <primary sortas="c-libp11-kit">libp11-kit.so</primary>
|
---|
| 263 | </indexterm>
|
---|
| 264 | </listitem>
|
---|
| 265 | </varlistentry>
|
---|
| 266 |
|
---|
| 267 | <varlistentry id="p11-kit-proxy">
|
---|
[8835dbde] | 268 | <term><filename class="libraryfile">p11-kit-proxy.so</filename></term>
|
---|
[691bb91] | 269 | <listitem>
|
---|
[70c0ef4] | 270 | <para>
|
---|
[4c24eb0a] | 271 | is the PKCS#11 proxy module
|
---|
[70c0ef4] | 272 | </para>
|
---|
[691bb91] | 273 | <indexterm zone="p11-kit p11-kit-proxy">
|
---|
| 274 | <primary sortas="c-p11-kit-proxy">p11-kit-proxy.so</primary>
|
---|
| 275 | </indexterm>
|
---|
| 276 | </listitem>
|
---|
| 277 | </varlistentry>
|
---|
| 278 |
|
---|
| 279 | </variablelist>
|
---|
| 280 |
|
---|
| 281 | </sect2>
|
---|
| 282 |
|
---|
| 283 | </sect1>
|
---|