diff options
author | Aleks Kissinger <aleks0@gmail.com> | 2018-01-04 15:58:21 +0100 |
---|---|---|
committer | Aleks Kissinger <aleks0@gmail.com> | 2018-01-04 15:58:21 +0100 |
commit | 0421a96749743868554d44585050b1b3d04864d2 (patch) | |
tree | 02b0d4442bddee7c65bee0f875783b46610a4aef /tikzit-old/scripts/sign_update.rb | |
parent | fecef0396026b80c5aec736171e4842df7518af9 (diff) |
removed website
Diffstat (limited to 'tikzit-old/scripts/sign_update.rb')
-rwxr-xr-x | tikzit-old/scripts/sign_update.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tikzit-old/scripts/sign_update.rb b/tikzit-old/scripts/sign_update.rb new file mode 100755 index 0000000..6d03e2e --- /dev/null +++ b/tikzit-old/scripts/sign_update.rb @@ -0,0 +1,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`
\ No newline at end of file |