Make all *.local domains resolve to localhost

It’s time for my yearly blog post, so let’s get started! Some development environments use *.local-domains which point to localhost. Creating a hosts-entry for every single domain is not an elegant solution, so let’s do something easier: let’s use dnsmasq to resolve ALL .local-domains to localhost! Tested on CentOS 7, but should work similarly for other Linuxes. All commands assume you have root privileges. If you are not logged in as root, prepend sudo to all commands.

Install own CA-Certificate in Linux

Overview Ubuntu, SLES, Debian CentOS, RHEL Ubuntu, SLES, Debian Tested under Ubuntu and SLES 11 so far. Required Packages install with apt-get install ... or similar openssl Steps # Step 0: Convert the Certificate to PEM format openssl x509 -inform der -in certificate.cer -out certificate.pem # Step 0.5: Make sure there is only 1 Certificate in the File grep 'BEGIN.* CERTIFICATE' certificate.pem | wc -l # should output `1` # Step 1: Verify it's the correct Certificate openssl x509 -noout -fingerprint -in certificate.