From http://www.jwz.org/xscreensaver/xscreensaver-5.27.tar.gz
[xscreensaver] / OSX / sign_update.rb
1 #!/usr/bin/ruby
2 if ARGV.length < 2
3   puts "Usage: ruby sign_update.rb update_archive private_key"
4   exit
5 end
6
7 puts `openssl dgst -sha1 -binary < "#{ARGV[0]}" | openssl dgst -dss1 -sign "#{ARGV[1]}" | openssl enc -base64`