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