[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 &&
|
---|
| 99 | cat >> trust/trust-extract-compat.in << "EOF"
|
---|
| 100 | echo "Please create an OpenSSL Trusted Certificate with appropriate"
|
---|
| 101 | echo "trust arguments in /etc/ssl/local/ and run '/usr/sbin/make-ca -f'"
|
---|
| 102 | echo "as the root user."
|
---|
| 103 | exit 1
|
---|
| 104 | EOF</userinput></screen>
|
---|
| 105 |
|
---|
[70c0ef4] | 106 | <para>
|
---|
| 107 | Install <application>p11-kit</application> by running the following
|
---|
| 108 | commands:
|
---|
| 109 | </para>
|
---|
[691bb91] | 110 |
|
---|
[9cdbbe9] | 111 | <screen><userinput>./configure --prefix=/usr \
|
---|
| 112 | --sysconfdir=/etc \
|
---|
| 113 | --with-trust-paths=/etc/pki/anchors &&
|
---|
[691bb91] | 114 | make</userinput></screen>
|
---|
| 115 |
|
---|
[70c0ef4] | 116 | <para>
|
---|
[0065e69] | 117 | To test the results, issue: <command>make check</command>.
|
---|
[4d7d99d] | 118 | One test, test-token 6, is known to fail.
|
---|
[70c0ef4] | 119 | </para>
|
---|
[691bb91] | 120 |
|
---|
[70c0ef4] | 121 | <para>
|
---|
| 122 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 123 | </para>
|
---|
[691bb91] | 124 |
|
---|
| 125 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 126 |
|
---|
| 127 | </sect2>
|
---|
| 128 |
|
---|
| 129 | <sect2 role="commands">
|
---|
| 130 | <title>Command Explanations</title>
|
---|
| 131 |
|
---|
[4a16903] | 132 | <para>
|
---|
| 133 | <parameter>--with-trust-paths=/etc/pki/anchors</parameter>: this switch
|
---|
| 134 | sets the location of trusted certificates used by libp11-kit.so.
|
---|
| 135 | </para>
|
---|
| 136 |
|
---|
[d055428] | 137 | <para>
|
---|
| 138 | <option>--with-hash-impl=freebl</option>: Use this switch if you want to
|
---|
[f586237] | 139 | use the Freebl library from <application>NSS</application> for SHA1 and
|
---|
| 140 | MD5 hashing.
|
---|
[d055428] | 141 | </para>
|
---|
| 142 |
|
---|
[4c39aff] | 143 | <para>
|
---|
| 144 | <option>--enable-doc</option>: Use this switch if you have installed
|
---|
| 145 | <xref linkend="gtk-doc"/> and <xref linkend="libxslt"/> and wish to
|
---|
| 146 | rebuild the documentation and generate manual pages.
|
---|
| 147 | </para>
|
---|
[691bb91] | 148 |
|
---|
| 149 | </sect2>
|
---|
| 150 |
|
---|
[4a16903] | 151 | <sect2 role="configuration">
|
---|
| 152 | <title>Configuring p11-kit</title>
|
---|
| 153 |
|
---|
[1ac799b] | 154 | <para>The <application>p11-kit</application> trust module
|
---|
| 155 | (<filename>/usr/lib/pkcs11/p11-kit-trust.so</filename>) can be used as a
|
---|
| 156 | drop-in replacement for <filename>/usr/lib/libnssckbi.so</filename> to
|
---|
[4a16903] | 157 | transparently make the system CAs available to
|
---|
| 158 | <application>NSS</application> aware applications, rather than the static
|
---|
| 159 | list provided by <filename>/usr/lib/libnssckbi.so</filename>. As the
|
---|
| 160 | <systemitem class="username">root</systemitem> user, execute the following
|
---|
| 161 | commands:</para>
|
---|
| 162 |
|
---|
[b2c18590] | 163 | <screen role="root"><userinput>if [ -e /usr/lib/libnssckbi.so ]; then
|
---|
| 164 | readlink /usr/lib/libnssckbi.so ||
|
---|
| 165 | rm -v /usr/lib/libnssckbi.so &&
|
---|
[1ac799b] | 166 | ln -sfv ./pkcs11/p11-kit-trust.so /usr/lib/libnssckbi.so
|
---|
[b2c18590] | 167 | fi</userinput></screen>
|
---|
[4a16903] | 168 |
|
---|
| 169 | </sect2>
|
---|
| 170 |
|
---|
[691bb91] | 171 | <sect2 role="content">
|
---|
| 172 | <title>Contents</title>
|
---|
| 173 |
|
---|
| 174 | <segmentedlist>
|
---|
[f5e51f4] | 175 | <segtitle>Installed Programs</segtitle>
|
---|
[691bb91] | 176 | <segtitle>Installed Libraries</segtitle>
|
---|
| 177 | <segtitle>Installed Directories</segtitle>
|
---|
| 178 |
|
---|
| 179 | <seglistitem>
|
---|
[70c0ef4] | 180 | <seg>
|
---|
[d055428] | 181 | p11-kit and trust
|
---|
[70c0ef4] | 182 | </seg>
|
---|
| 183 | <seg>
|
---|
[1c14a239] | 184 | libp11-kit.so and p11-kit-proxy.so
|
---|
[70c0ef4] | 185 | </seg>
|
---|
| 186 | <seg>
|
---|
| 187 | /etc/pkcs11,
|
---|
[4c39aff] | 188 | /usr/include/p11-kit-1,
|
---|
[a1f2d184] | 189 | /usr/lib/{p11-kit,pkcs11},
|
---|
[2955093] | 190 | /usr/share/gtk-doc/html/p11-kit, and
|
---|
[4c39aff] | 191 | /usr/share/p11-kit
|
---|
[70c0ef4] | 192 | </seg>
|
---|
[691bb91] | 193 | </seglistitem>
|
---|
| 194 | </segmentedlist>
|
---|
| 195 |
|
---|
| 196 | <variablelist>
|
---|
| 197 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 198 | <?dbfo list-presentation="list"?>
|
---|
| 199 | <?dbhtml list-presentation="table"?>
|
---|
| 200 |
|
---|
[4c39aff] | 201 | <varlistentry id="p11-kit-prog">
|
---|
| 202 | <term><command>p11-kit</command></term>
|
---|
| 203 | <listitem>
|
---|
| 204 | <para>
|
---|
| 205 | is a command line tool that can be used to perform operations
|
---|
| 206 | on PKCS#11 modules configured on the system.
|
---|
| 207 | </para>
|
---|
| 208 | <indexterm zone="p11-kit p11-kit-prog">
|
---|
| 209 | <primary sortas="b-p11-kit">p11-kit</primary>
|
---|
| 210 | </indexterm>
|
---|
| 211 | </listitem>
|
---|
| 212 | </varlistentry>
|
---|
| 213 |
|
---|
[72d90b67] | 214 | <varlistentry id="trust">
|
---|
| 215 | <term><command>trust</command></term>
|
---|
| 216 | <listitem>
|
---|
| 217 | <para>
|
---|
| 218 | is a command line tool to examine and modify the shared trust
|
---|
| 219 | policy store.
|
---|
| 220 | </para>
|
---|
| 221 | <indexterm zone="p11-kit trust">
|
---|
| 222 | <primary sortas="b-trust">trust</primary>
|
---|
| 223 | </indexterm>
|
---|
| 224 | </listitem>
|
---|
| 225 | </varlistentry>
|
---|
| 226 |
|
---|
| 227 |
|
---|
[691bb91] | 228 | <varlistentry id="libp11-kit">
|
---|
[8835dbde] | 229 | <term><filename class="libraryfile">libp11-kit.so</filename></term>
|
---|
[691bb91] | 230 | <listitem>
|
---|
[70c0ef4] | 231 | <para>
|
---|
[0d7900a] | 232 | contains functions used to coordinate initialization and
|
---|
[70c0ef4] | 233 | finalization of any PKCS#11 module.
|
---|
| 234 | </para>
|
---|
[691bb91] | 235 | <indexterm zone="p11-kit libp11-kit">
|
---|
| 236 | <primary sortas="c-libp11-kit">libp11-kit.so</primary>
|
---|
| 237 | </indexterm>
|
---|
| 238 | </listitem>
|
---|
| 239 | </varlistentry>
|
---|
| 240 |
|
---|
| 241 | <varlistentry id="p11-kit-proxy">
|
---|
[8835dbde] | 242 | <term><filename class="libraryfile">p11-kit-proxy.so</filename></term>
|
---|
[691bb91] | 243 | <listitem>
|
---|
[70c0ef4] | 244 | <para>
|
---|
| 245 | is the PKCS#11 proxy module.
|
---|
| 246 | </para>
|
---|
[691bb91] | 247 | <indexterm zone="p11-kit p11-kit-proxy">
|
---|
| 248 | <primary sortas="c-p11-kit-proxy">p11-kit-proxy.so</primary>
|
---|
| 249 | </indexterm>
|
---|
| 250 | </listitem>
|
---|
| 251 | </varlistentry>
|
---|
| 252 |
|
---|
| 253 | </variablelist>
|
---|
| 254 |
|
---|
| 255 | </sect2>
|
---|
| 256 |
|
---|
| 257 | </sect1>
|
---|