Skip to content
Browse files

Using /usr/bin/openssl in the signing scripts instead of /usr/bin/env…

… openssl.

Fixes bug 793221.
  • Loading branch information...
1 parent 32d4f24 commit 000a24c63bcffa5df66f85b975c7f8aaac59e004 @andymatuschak andymatuschak committed
Showing with 6 additions and 5 deletions.
  1. +4 −3 generate_keys.rb
  2. +2 −2 sign_update.rb
View
7 generate_keys.rb
@@ -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
View
4 sign_update.rb
@@ -3,5 +3,5 @@
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`

0 comments on commit 000a24c

Please sign in to comment.
Something went wrong with that request. Please try again.