Finding Self-Signed Certificates with wget

I wanted to find a systematic way of finding self-signed certificates without a dependency on any other item, such as DNS or lists that could be out of date. I wrote a basic shell script to use wget to download the default page using an IP address. I looped through all IP’s within a block. This finds anything that is using a self-signed certificate. The script is basic and can be optimized to run multiple networks at one time rather than looping sequentially.

getthecert.sh

Linux Local or Remote Software Repository Setup with Apache

On Linux, it is useful to have a local software repository that you use for an installation source. Once you have a local repository, you can then use Apache to make the repository available to other servers remotely.

A question for those studying for the Redhat exam, may look something like this:

Question:
On your local server, setup a repository in the directory /repo to served by Apache/httpd. Set Apache to autostart on boot and change your local machine to act as a repo client and use the new Apache repository.

Boot Linux in single user mode and reset root password

For either the Red hat exam or just for administrative tasks, sometimes one will have to reset the root password on a Linux system.

To test if you can perform the require steps, see if you can:
1) Boot the target system
2) Interrupt GRUB at stage 2 and either temporarily set the system to boot in single user mode or create a new grub entry to boot into single user mode.
3) Once the system boots in single user mode, reset the root password.
4) Boot normally and verify your root password change was successful.