From 5a654fe50868b8a11f0ff96df213d2f27268a40c Mon Sep 17 00:00:00 2001 From: barchard Date: Tue, 7 Nov 2017 20:18:03 -0500 Subject: [PATCH] Update encrypt_plist.rb Remove HTTP request to a URL that is returning a 404. Fix the name of the pem file Fix the path to the one found within this repo. --- secure_stack_API/encrypted_plist_data/encrypt_plist.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/secure_stack_API/encrypted_plist_data/encrypt_plist.rb b/secure_stack_API/encrypted_plist_data/encrypt_plist.rb index 0fae118..8aefc45 100644 --- a/secure_stack_API/encrypted_plist_data/encrypt_plist.rb +++ b/secure_stack_API/encrypted_plist_data/encrypt_plist.rb @@ -34,10 +34,8 @@ end -# download the public key -stackPublicKeyURL = "https://raw.githubusercontent.com/yourhead/s3/master/secure_update_API/stack_public_key.pem" -publicKeyPem = Net::HTTP.get(URI.parse(stackPublicKeyURL)) -publicKey = OpenSSL::PKey::RSA.new (File.read ('./public.pem')) +# +publicKey = OpenSSL::PKey::RSA.new (File.read (File.realpath(__dir__ + '/../stack_public_key.pem'))) if (!publicKey) abort("Could not download stacks public key") end