~ubuntu-branches/ubuntu/trusty/ca-certificates/trusty-proposed

« back to all changes in this revision

Viewing changes to sbin/update-ca-certificates

  • Committer: Bazaar Package Importer
  • Author(s): Fumitoshi UKAI
  • Date: 2005-05-18 00:40:54 UTC
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20050518004054-nzwi3xz5s3b70r4s
Tags: 20050518
* fix ca-certificates.crt generationumask-sensitive and racy
  closes: Bug#296212
* update mozilla/certdata.txt
  add: "Certum Root CA", "Comodo AAA Services root"
       "Comodo Secure Services root", 
 "Comodo Trusted Services root",
 "IPS Chained CAs root", "IPS CLASE1 root", "IPS CLASE3 root",
 "IPS CLASEA1 root", "IPS CLASEA3 root", "IPS Servidores root"
 "IPS Timestamping root",
 "QuoVadis Root CA",
 "Security Communication Root CA",
 "Sonera Class 1 Root CA", "Sonera Class 2 Root CA",
 "Staat der Nederlanden Root CA",
 "TDC Internet Root CA", "TDC OCES Root CA", 
 "UTN DATACorp SGC Root CA", "UTN USERFirst Email Root CA",
 "UTN USERFirst Hardware Root CA", "UTN USERFirst Object Root CA"
* add CACert.org's Root CA
  closes: Bug#213086, Bug#288293
* add debian/po/vi.po
  closes: Bug#309480
* add debian/po/cs.po
  closes: Bug#309019
* write "How certificate will be accepted in ca-certificates package"
  in README.Debain
  

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
 
38
38
CERTSCONF=/etc/ca-certificates.conf
39
39
CERTSDIR=/usr/share/ca-certificates
 
40
CERTBUNDLE=ca-certificates.crt
40
41
cd /etc/ssl/certs
41
42
if [ "$fresh" = 1 ]; then
42
43
  echo -n "Clearing symlinks in /etc/ssl/certs..."
45
46
fi
46
47
echo -n "Updating certificates in /etc/ssl/certs...."
47
48
 
48
 
rm -f ca-certificates.crt
 
49
bundletmp=`mktemp "${CERTBUNDLE}.tmp.XXXXXX"`
49
50
sed -ne 's/^!//p' $CERTSCONF | while read crt
50
51
do
51
52
 if test "$crt" = ""; then continue; fi
59
60
 if ! test -f "$CERTSDIR/$crt"; then continue; fi
60
61
 pem=$(basename "$crt" .crt).pem
61
62
 ln -sf "$CERTSDIR/$crt" "$pem"
62
 
 cat "$CERTSDIR/$crt" >> ca-certificates.crt
 
63
 cat "$CERTSDIR/$crt" >> "$bundletmp"
63
64
done
 
65
chmod 0644 "$bundletmp"
 
66
mv -f "$bundletmp" "$CERTBUNDLE"
 
67
 
64
68
if [ "$verbose" = 0 ]; then
65
69
  c_rehash . > /dev/null 2>&1
66
70
else