You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

15 lines
293 B

#!/bin/sh
CERTSCONF=/etc/ca-certificates.conf
CERTSDIR=/usr/share/ca-certificates
rm -f $CERTSCONF
subdirs="$(ls -1 $CERTSDIR)"
for subdir in $subdirs; do
certs="$(ls -1 $CERTSDIR/$subdir)"
for cert in $certs; do
echo "add $subdir/$cert"
echo "$subdir/$cert" >> $CERTSCONF
done
done