blob: 6d03e2ef0c26802d0a55b6450d0391130c4448d6 (
plain)
1
2
3
4
5
6
7
|
#!/usr/bin/ruby
if ARGV.length < 2
puts "Usage: ruby sign_update.rb update_archive private_key"
exit
end
puts `openssl dgst -sha1 -binary < "#{ARGV[0]}" | openssl dgst -dss1 -sign "#{ARGV[1]}" | openssl enc -base64`
|