Month: December 2017

How to encrypt a large file in openssl using public key

See: https://stackoverflow.com/questions/7143514/how-to-encrypt-a-large-file-in-openssl-using-public-key Generate a symmetric key because you can encrypt large files with it openssl rand -base64 32 > key.bin Encrypt the large file using the symmetric key openssl enc -aes-256-cbc -salt -in myLargeFile.xml \ -out myLargeFile.xml.enc -pass file:./key.bin Encrypt the symmetric key so you can safely send it to the other person openssl rsautl -encrypt -inkey public.pem -pubin -in key.bin -out key.bin.enc Destroy the un-encrypted symmetric key so nobody finds it shred -u key.bin or: gshred -u key.bin At this…

Read More »

Remote X11 GUI For Linux/Unix

Source: https://www.redwireservices.com/remote-x11-for-linux-unix The Problem One of my most feared questions from end users is “how can I interact with an X11 GUI application on our remote Linux system if I have no access to the physical console, X11 isn’t installed, and there is no VNC access?”  After hearing this many times at one site, I wrote a script to automate the server side process, but even that does not address the whole story.  I’m writing this post as a quick reference when I…

Read More »