mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-25 04:47:55 +00:00
Using /usr/bin/openssl in the signing scripts instead of /usr/bin/env openssl.
Fixes bug 793221.
This commit is contained in:
1 parent
32d4f249d4
commit
000a24c63b
2 files changed
+6
-5
No files matched your search
+4
-3
@@ -5,9 +5,10 @@
|
||||
exit
|
||||
end
|
||||
end
|
||||
`openssl dsaparam 1024 < /dev/urandom > dsaparam.pem`
|
||||
`openssl gendsa dsaparam.pem -out dsa_priv.pem`
|
||||
`openssl dsa -in dsa_priv.pem -pubout -out dsa_pub.pem`
|
||||
openssl = "/usr/bin/openssl"
|
||||
`#{openssl} dsaparam 1024 < /dev/urandom > dsaparam.pem`
|
||||
`#{openssl} gendsa dsaparam.pem -out dsa_priv.pem`
|
||||
`#{openssl} dsa -in dsa_priv.pem -pubout -out dsa_pub.pem`
|
||||
`rm dsaparam.pem`
|
||||
puts "\nGenerated private and public keys: dsa_priv.pem and dsa_pub.pem.\n
|
||||
BACK UP YOUR PRIVATE KEY AND KEEP IT SAFE!\n
|
||||
|
||||
+2
-2
@@ -3,5 +3,5 @@ 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`
|
||||
openssl = "/usr/bin/openssl"
|
||||
puts `#{openssl} dgst -sha1 -binary < "#{ARGV[0]}" | openssl dgst -dss1 -sign "#{ARGV[1]}" | openssl enc -base64`
|
||||
Reference in new issue
Block a user