[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 " ">
|
---|
[bd2365e0] | 9 | <!ENTITY p11-kit-md5sum "c9b3076475c6a57ca62005c43e77cd64">
|
---|
[a6ea526] | 10 | <!ENTITY p11-kit-size "804 KB">
|
---|
[6914a417] | 11 | <!ENTITY p11-kit-buildsize "46 MB (add 169 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 |
|
---|
[66c4901f] | 37 | &lfs91_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 |
|
---|
[c45f906] | 75 | <!-- There is a check for libsystemd. It seems to install a systemd service
|
---|
| 76 | in /usr/lib/systemd/user.-->
|
---|
[4c39aff] | 77 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 78 | <para role="recommended">
|
---|
[60424b6] | 79 | <xref linkend="libtasn1"/> and
|
---|
| 80 | <xref role="runtime" linkend="make-ca"/> (runtime)
|
---|
[4c39aff] | 81 | </para>
|
---|
| 82 |
|
---|
[70c0ef4] | 83 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 84 | <para role="optional">
|
---|
[60424b6] | 85 | <xref linkend="gtk-doc"/>,
|
---|
| 86 | <xref linkend="libxslt"/>, and
|
---|
| 87 | <xref role="runtime" linkend="nss"/> (runtime)
|
---|
[70c0ef4] | 88 | </para>
|
---|
[691bb91] | 89 |
|
---|
[70c0ef4] | 90 | <para condition="html" role="usernotes">User Notes:
|
---|
| 91 | <ulink url="&blfs-wiki;/p11-kit"/>
|
---|
| 92 | </para>
|
---|
[691bb91] | 93 | </sect2>
|
---|
| 94 |
|
---|
| 95 | <sect2 role="installation">
|
---|
| 96 | <title>Installation of p11-kit</title>
|
---|
| 97 |
|
---|
[47274444] | 98 | <para>
|
---|
| 99 | Prepare the distribution specific anchor hook:
|
---|
| 100 | </para>
|
---|
[f5e51f4] | 101 |
|
---|
| 102 | <screen><userinput>sed '20,$ d' -i trust/trust-extract-compat.in &&
|
---|
| 103 | cat >> trust/trust-extract-compat.in << "EOF"
|
---|
[02e3bbc8] | 104 | <literal># Copy existing anchor modifications to /etc/ssl/local
|
---|
| 105 | /usr/libexec/make-ca/copy-trust-modifications
|
---|
[d973faf] | 106 |
|
---|
| 107 | # Generate a new trust store
|
---|
[02e3bbc8] | 108 | /usr/sbin/make-ca -f -g</literal>
|
---|
[f5e51f4] | 109 | EOF</userinput></screen>
|
---|
| 110 |
|
---|
[70c0ef4] | 111 | <para>
|
---|
| 112 | Install <application>p11-kit</application> by running the following
|
---|
| 113 | commands:
|
---|
| 114 | </para>
|
---|
[691bb91] | 115 |
|
---|
[9cdbbe9] | 116 | <screen><userinput>./configure --prefix=/usr \
|
---|
| 117 | --sysconfdir=/etc \
|
---|
| 118 | --with-trust-paths=/etc/pki/anchors &&
|
---|
[691bb91] | 119 | make</userinput></screen>
|
---|
| 120 |
|
---|
[70c0ef4] | 121 | <para>
|
---|
[0065e69] | 122 | To test the results, issue: <command>make check</command>.
|
---|
[b5f0edd] | 123 | Many tests will fail if the test suite is run as the
|
---|
| 124 | <systemitem class="username"> root</systemitem> user.
|
---|
[70c0ef4] | 125 | </para>
|
---|
[691bb91] | 126 |
|
---|
[70c0ef4] | 127 | <para>
|
---|
| 128 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 129 | </para>
|
---|
[691bb91] | 130 |
|
---|
[d973faf] | 131 | <screen role="root"><userinput>make 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 |
|
---|
[4a16903] | 140 | <para>
|
---|
| 141 | <parameter>--with-trust-paths=/etc/pki/anchors</parameter>: this switch
|
---|
| 142 | sets the location of trusted certificates used by libp11-kit.so.
|
---|
| 143 | </para>
|
---|
| 144 |
|
---|
[d055428] | 145 | <para>
|
---|
| 146 | <option>--with-hash-impl=freebl</option>: Use this switch if you want to
|
---|
[f586237] | 147 | use the Freebl library from <application>NSS</application> for SHA1 and
|
---|
| 148 | MD5 hashing.
|
---|
[d055428] | 149 | </para>
|
---|
| 150 |
|
---|
[4c39aff] | 151 | <para>
|
---|
| 152 | <option>--enable-doc</option>: Use this switch if you have installed
|
---|
| 153 | <xref linkend="gtk-doc"/> and <xref linkend="libxslt"/> and wish to
|
---|
| 154 | rebuild the documentation and generate manual pages.
|
---|
| 155 | </para>
|
---|
[691bb91] | 156 |
|
---|
| 157 | </sect2>
|
---|
| 158 |
|
---|
[4a16903] | 159 | <sect2 role="configuration">
|
---|
| 160 | <title>Configuring p11-kit</title>
|
---|
| 161 |
|
---|
[47274444] | 162 | <para>
|
---|
| 163 | The <application>p11-kit</application> trust module
|
---|
| 164 | (<filename>/usr/lib/pkcs11/p11-kit-trust.so</filename>) can be used as a
|
---|
| 165 | drop-in replacement for <filename>/usr/lib/libnssckbi.so</filename> to
|
---|
| 166 | transparently make the system CAs available to
|
---|
| 167 | <application>NSS</application> aware applications, rather than the static
|
---|
| 168 | list provided by <filename>/usr/lib/libnssckbi.so</filename>. As the
|
---|
| 169 | <systemitem class="username">root</systemitem> user, execute the
|
---|
| 170 | following commands:
|
---|
| 171 | </para>
|
---|
[4a16903] | 172 |
|
---|
[5c69a2d] | 173 | <screen role="root"><userinput>ln -sfv ./pkcs11/p11-kit-trust.so /usr/lib/libnssckbi.so</userinput></screen>
|
---|
[4a16903] | 174 |
|
---|
| 175 | </sect2>
|
---|
| 176 |
|
---|
[691bb91] | 177 | <sect2 role="content">
|
---|
| 178 | <title>Contents</title>
|
---|
| 179 |
|
---|
| 180 | <segmentedlist>
|
---|
[f5e51f4] | 181 | <segtitle>Installed Programs</segtitle>
|
---|
[691bb91] | 182 | <segtitle>Installed Libraries</segtitle>
|
---|
| 183 | <segtitle>Installed Directories</segtitle>
|
---|
| 184 |
|
---|
| 185 | <seglistitem>
|
---|
[70c0ef4] | 186 | <seg>
|
---|
[c45f906] | 187 | p11-kit, trust, and update-ca-certificates
|
---|
[70c0ef4] | 188 | </seg>
|
---|
| 189 | <seg>
|
---|
[1c14a239] | 190 | libp11-kit.so and p11-kit-proxy.so
|
---|
[70c0ef4] | 191 | </seg>
|
---|
| 192 | <seg>
|
---|
| 193 | /etc/pkcs11,
|
---|
[4c39aff] | 194 | /usr/include/p11-kit-1,
|
---|
[c45f906] | 195 | /usr/lib/pkcs11,
|
---|
| 196 | /usr/libexec/p11-kit,
|
---|
[2955093] | 197 | /usr/share/gtk-doc/html/p11-kit, and
|
---|
[4c39aff] | 198 | /usr/share/p11-kit
|
---|
[70c0ef4] | 199 | </seg>
|
---|
[691bb91] | 200 | </seglistitem>
|
---|
| 201 | </segmentedlist>
|
---|
| 202 |
|
---|
| 203 | <variablelist>
|
---|
| 204 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 205 | <?dbfo list-presentation="list"?>
|
---|
| 206 | <?dbhtml list-presentation="table"?>
|
---|
| 207 |
|
---|
[4c39aff] | 208 | <varlistentry id="p11-kit-prog">
|
---|
| 209 | <term><command>p11-kit</command></term>
|
---|
| 210 | <listitem>
|
---|
| 211 | <para>
|
---|
| 212 | is a command line tool that can be used to perform operations
|
---|
[47274444] | 213 | on PKCS#11 modules configured on the system.
|
---|
[4c39aff] | 214 | </para>
|
---|
| 215 | <indexterm zone="p11-kit p11-kit-prog">
|
---|
| 216 | <primary sortas="b-p11-kit">p11-kit</primary>
|
---|
| 217 | </indexterm>
|
---|
| 218 | </listitem>
|
---|
| 219 | </varlistentry>
|
---|
| 220 |
|
---|
[72d90b67] | 221 | <varlistentry id="trust">
|
---|
| 222 | <term><command>trust</command></term>
|
---|
| 223 | <listitem>
|
---|
| 224 | <para>
|
---|
| 225 | is a command line tool to examine and modify the shared trust
|
---|
| 226 | policy store.
|
---|
| 227 | </para>
|
---|
| 228 | <indexterm zone="p11-kit trust">
|
---|
| 229 | <primary sortas="b-trust">trust</primary>
|
---|
| 230 | </indexterm>
|
---|
| 231 | </listitem>
|
---|
| 232 | </varlistentry>
|
---|
| 233 |
|
---|
[d973faf] | 234 | <varlistentry id="update-ca-certificates">
|
---|
| 235 | <term><command>update-ca-certificates</command></term>
|
---|
| 236 | <listitem>
|
---|
| 237 | <para>
|
---|
| 238 | is a command line tool to both extract local certificates from an
|
---|
[c45f906] | 239 | updated anchor store, and regenerate all anchors and certificate
|
---|
[47274444] | 240 | stores on the system. This is done unconditionally on BLFS using
|
---|
[254e3bf] | 241 | the <parameter>--force</parameter> and <parameter>--get</parameter>
|
---|
| 242 | flags to <command>make-ca</command> and should likely not be used
|
---|
| 243 | for automated updates.
|
---|
[d973faf] | 244 | </para>
|
---|
| 245 | <indexterm zone="p11-kit update-ca-certificates">
|
---|
[254e3bf] | 246 | <primary sortas="b-update-ca-certificates">update-ca-certificates</primary>
|
---|
[d973faf] | 247 | </indexterm>
|
---|
| 248 | </listitem>
|
---|
| 249 | </varlistentry>
|
---|
[72d90b67] | 250 |
|
---|
[691bb91] | 251 | <varlistentry id="libp11-kit">
|
---|
[8835dbde] | 252 | <term><filename class="libraryfile">libp11-kit.so</filename></term>
|
---|
[691bb91] | 253 | <listitem>
|
---|
[70c0ef4] | 254 | <para>
|
---|
[0d7900a] | 255 | contains functions used to coordinate initialization and
|
---|
[70c0ef4] | 256 | finalization of any PKCS#11 module.
|
---|
| 257 | </para>
|
---|
[691bb91] | 258 | <indexterm zone="p11-kit libp11-kit">
|
---|
| 259 | <primary sortas="c-libp11-kit">libp11-kit.so</primary>
|
---|
| 260 | </indexterm>
|
---|
| 261 | </listitem>
|
---|
| 262 | </varlistentry>
|
---|
| 263 |
|
---|
| 264 | <varlistentry id="p11-kit-proxy">
|
---|
[8835dbde] | 265 | <term><filename class="libraryfile">p11-kit-proxy.so</filename></term>
|
---|
[691bb91] | 266 | <listitem>
|
---|
[70c0ef4] | 267 | <para>
|
---|
| 268 | is the PKCS#11 proxy module.
|
---|
| 269 | </para>
|
---|
[691bb91] | 270 | <indexterm zone="p11-kit p11-kit-proxy">
|
---|
| 271 | <primary sortas="c-p11-kit-proxy">p11-kit-proxy.so</primary>
|
---|
| 272 | </indexterm>
|
---|
| 273 | </listitem>
|
---|
| 274 | </varlistentry>
|
---|
| 275 |
|
---|
| 276 | </variablelist>
|
---|
| 277 |
|
---|
| 278 | </sect2>
|
---|
| 279 |
|
---|
| 280 | </sect1>
|
---|