Save server certificate to your local machine using bash

To save a server certificate to your local machine, we can use openssl and read from the https port 443 and save it using echo. Save the above script to a file called save_server_script.sh and give permissions. Run the script and open the directory to see the .crt file getting saved.

Update all packages in Ubuntu

Updating packages in Ubuntu is sometimes needed to upgrade your Ubuntu to latest version and apply security updates. We can also upgrade all packages in the system to make sure we use the latest version of all packages. Steps below. Update repositories sudo apt update updates the Ubuntu repositories so that your system checks against the repositories … Read more