Ignore:
Timestamp:
08/01/2015 04:26:22 AM (9 years ago)
Author:
Douglas R. Reno <renodr@…>
Branches:
systemd-13485
Children:
ad6910d
Parents:
4a83293
Message:

Import back into SVN from Github

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/branches/systemd@16309 af4574ff-66df-0310-9fd7-8a98e5e911e0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • postlfs/security/cacerts.xml

    r4a83293 rac38e9dc  
    88  <!ENTITY certdir               "/mozilla/source/security/nss/lib/ckfw/builtins">
    99  <!ENTITY ca-bundle-download    "&sources-anduin-other-http;/certdata.txt">
    10   <!ENTITY ca-bundle-size        "1.2 MB">
    11   <!ENTITY cacerts-buildsize     "1.2 MB">
    12   <!ENTITY cacerts-time          "less than 0.1 SBU">
     10  <!ENTITY ca-bundle-size        "1.6 MB">
     11  <!ENTITY cacerts-buildsize     "6 MB">
     12  <!ENTITY cacerts-time          "0.1 SBU">
    1313]>
    1414
     
    3131  <application>openssl</application>.</para>
    3232
    33   &lfs76_checked;
     33  &lfs77_checked;
    3434
    3535  <indexterm zone="cacerts">
     
    4646      </listitem>
    4747      <listitem>
    48         <para>CA Bundle size: &ca-bundle-size;</para>
     48        <para>CA Certificate size: &ca-bundle-size;</para>
    4949      </listitem>
    5050      <listitem>
     
    6666
    6767    <bridgehead renderas="sect4">Required</bridgehead>
    68     <para role="required"><xref linkend="openssl"/></para>
     68    <para role="required">
     69      <xref linkend="openssl"/>
     70    </para>
    6971
    7072    <bridgehead renderas="sect4">Recommended</bridgehead>
    71     <para role="recommended"><xref linkend="wget"/></para>
     73    <para role="recommended">
     74      <xref linkend="wget"/>
     75    </para>
    7276
    7377    <para condition="html" role="usernotes">User Notes:
    74     <ulink url='&blfs-wiki;/cacerts'/></para>
     78    <ulink url="&blfs-wiki;/cacerts"/></para>
    7579  </sect2>
    7680
     
    8690
    8791# Used to generate PEM encoded files from Mozilla certdata.txt.
    88 # Run as ./mkcrt.pl > certificate.crt
     92# Run as ./make-cert.pl > certificate.crt
    8993#
    9094# Parts of this script courtesy of RedHat (mkcabundle.pl)
     
    179183mkdir "${TEMPDIR}/certs"
    180184
    181 # Get a list of staring lines for each cert
     185# Get a list of starting lines for each cert
    182186CERTBEGINLIST=$(grep -n "^# Certificate" "${certdata}" | cut -d ":" -f1)
    183187
     
    197201done
    198202
    199 unset CERTBEGINLIST CERTDATA CERTENDLIST certebegin certend
     203unset CERTBEGINLIST CERTDATA CERTENDLIST certbegin certend
    200204
    201205mkdir -p certs
     
    246250   class="username">root</systemitem> user:</para>
    247251
    248 <screen role="root"><userinput>cat > /usr/bin/remove-expired-certs.sh &lt;&lt; "EOF"
     252<screen role="root"><userinput>cat > /usr/sbin/remove-expired-certs.sh &lt;&lt; "EOF"
    249253<literal>#!/bin/sh
    250 # Begin /usr/bin/remove-expired-certs.sh
     254# Begin /usr/sbin/remove-expired-certs.sh
    251255#
    252256# Version 20120211
     
    302306EOF
    303307
    304 chmod +x /usr/bin/remove-expired-certs.sh</userinput></screen>
     308chmod u+x /usr/sbin/remove-expired-certs.sh</userinput></screen>
    305309
    306310   <para>The following commands will fetch the certificates and convert them to
     
    314318wget $URL          &amp;&amp;
    315319make-ca.sh         &amp;&amp;
    316 remove-expired-certs.sh certs</userinput></screen>
     320unset URL</userinput></screen>
    317321
    318322   <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
    319323
    320324<screen role="root"><userinput>SSLDIR=/etc/ssl                                              &amp;&amp;
     325remove-expired-certs.sh certs                                &amp;&amp;
    321326install -d ${SSLDIR}/certs                                   &amp;&amp;
    322327cp -v certs/*.pem ${SSLDIR}/certs                            &amp;&amp;
     
    382387        <term><command>remove-expired-certs.sh</command></term>
    383388        <listitem>
    384           <para>is a utility <application>perl</application> script that
     389          <para>is a utility shell script that
    385390          removes expired certificates from a directory.  The default
    386391          directory is <filename class='directory'>/etc/ssl/certs</filename>.</para>
Note: See TracChangeset for help on using the changeset viewer.