mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-25 04:47:55 +00:00
I included some scripts to help you along, though. IANASG (I Am Not a Security Guy), though, so if you know your shit, feel free to do it on your own as before.
7 lines
220 B
Ruby
Executable File
7 lines
220 B
Ruby
Executable File
#!/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` |