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