diff options
author | Michael Shuler <michael@pbandjelly.org> | 2013-05-15 12:15:19 -0500 |
---|---|---|
committer | Michael Shuler <michael@pbandjelly.org> | 2013-05-15 12:15:19 -0500 |
commit | ea93bfa0f9361f15071075c4982a4ee4232bd906 (patch) | |
tree | 4b0fae0cc2967245b640cefa1b5de69944fad116 /mozilla | |
parent | bf9e3a036b1f556296ed5bd6264e5f272b7a462e (diff) | |
download | ca-certificates-ea93bfa0f9361f15071075c4982a4ee4232bd906.tar.gz |
Remove elderly mozilla/certdata2pem.rb
Diffstat (limited to 'mozilla')
-rw-r--r-- | mozilla/certdata2pem.rb | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/mozilla/certdata2pem.rb b/mozilla/certdata2pem.rb deleted file mode 100644 index 9ede9d6..0000000 --- a/mozilla/certdata2pem.rb +++ /dev/null @@ -1,36 +0,0 @@ -#!/usr/bin/ruby - -while line = $stdin.gets - next if line =~ /^#/ - if line =~ /^\s*$/ - fname = nil - next - end - line.chomp! - if line =~ /CKA_LABEL/ - label,type,val = line.split(' ',3) - val.sub!(/^"/, "") - val.sub!(/"$/, "") - fname = val.gsub(/\//,"_").gsub(/\s+/, "_").gsub(/[()]/, "=").gsub(/,/, "_") + ".crt" - next - end - if line =~ /CKA_VALUE MULTILINE_OCTAL/ - if fname.nil? - puts "E: unexpected CKA_VALUE MULTILINE_OCTAL" - next - end - data='' - while line = $stdin.gets - break if line =~ /^END/ - line.chomp! - line.gsub(/\\([0-3][0-7][0-7])/) { data += $1.oct.chr } - end - open(fname, "w") do |fp| - fp.puts "-----BEGIN CERTIFICATE-----" - fp.puts [data].pack("m*") - fp.puts "-----END CERTIFICATE-----" - end - puts "Created #{fname}" - end -end -# system("c_rehash", ".") |