Networking for main script
Created by: pkmo-linux
This performs the networking requirements for the main script to pull the updater jar during initial setup. The network traffic is <100KB, so I do not think we need to include a progress bar during startup.
Some notes:
-
In order to protect against DNS hijacking/poisoning distributing malware / Bad CDN caching, we perform signature validation of all files downloaded, hence the inclusion of the pubkey. This key is never changed, so it is fine to hardcode it forever.
-
As described by the FTP masters at https://ftp-master.debian.org/REJECT-FAQ.html , OpenSSL requires a special exception to be performed in the license to be legally compatible. Please see the links at https://people.gnome.org/~markmc/openssl-and-the-gpl.html and https://www.openssl.org/docs/faq.html#LEGAL2
I have included the blurb "This program is released under the GPL with the additional exemption that compiling, linking, and/or using OpenSSL is allowed" at the top of the main script, but you will need to update the copyright file @ Alioth, and maybe update the LICENSE file here.