quakespasm/MacOSX/sign_update.rb

8 lines
248 B
Ruby
Raw Normal View History

2010-12-17 00:37:07 +00:00
#!/usr/bin/ruby
if ARGV.length < 2
puts "Usage: ruby sign_update.rb update_archive private_key"
exit
end
2011-12-27 20:50:56 +00:00
puts `/usr/bin/openssl dgst -sha1 -binary < "#{ARGV[0]}" | /usr/bin/openssl dgst -dss1 -sign "#{ARGV[1]}" | /usr/bin/openssl enc -base64`