lmkelly / Autoguard

Wireguard Automated
3 stars 0 forks source link

Task #2 - Design a front-end script which can send config to the utility chosen in Task#1 #17

Open lmkelly opened 3 years ago

lmkelly commented 3 years ago

These two tasks will require some trial and error due to not knowing what exactly will work and thus will be intertwined

lmkelly commented 3 years ago

I've decided I'm going to attempt to encrypt the front end message using pgp before sending to the backend, making it more secure.

https://4sysops.com/archives/encrypt-and-decrypt-files-with-powershell-and-pgp/

lmkelly commented 3 years ago

Following a new lead because that one didn't work with multiple key pairs https://kulkarniamit.github.io/whatwhyhow/howto/encrypt-decrypt-file-using-rsa-public-private-keys.html

lmkelly commented 3 years ago

I'm gonna skip the encryption for now and focus on getting the file to the back-end, dropping more resources for when I come back to this. https://adamtheautomator.com/openssl-windows-10/ https://stackoverflow.com/questions/55284511/generating-an-rsa-key-pair-in-powershell

lmkelly commented 3 years ago

Setting up a new section of the initial front-end script which will send the emails to osticket https://www.pdq.com/blog/powershell-send-mailmessage-gmail/

lmkelly commented 3 years ago

New section setup successfully, the client can now send email to the server through the script.

Note there are inherent problems with this method that need to be ironed out, such as what email account would be used in the practical use of this setup, how that email could be better secured, and what encryption methods can be put into place to prevent anything from happening to the data in transit.