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