]> git.saurik.com Git - apple/security.git/blame - keychains/makeroots
Security-164.1.tar.gz
[apple/security.git] / keychains / makeroots
CommitLineData
29654253
A
1#!/usr/bin/perl
2#
3#
4#
5use strict;
6
7my $dbname = "X509Anchors";
8
9my $count = 0;
10my $created;
11for my $file (@ARGV) {
12 my @cmd = ("certtool", "i", $file, "k=$dbname", "d");
13 do { push @cmd, "c"; $created = 1; } unless $created;
14 print "$file ";
15 die if system @cmd;
16 $count++;
17}
18
19print "$count certificates placed into $dbname\n";
20exit 0;