Self-Signed Wildcard certificate with SAN using openssl / SSL

Copy the default template of openssl.cnf to a writable location. cp /System/Library/OpenSSL/openssl.cnf src Uncomment the req_extensions = v3_req req_extensions = v3_req # The extensions to add to a certificate request Add subjectAltName to v3_req section [ v3_req ] # Extensions to add to a certificate request basicConstraints = CA:FALSE keyUsage = nonRepudiation, digitalSignature, keyEncipherment subjectAltName = @alt_names Add the … Read more

Clear IP Tables (Firewall)

First, set the default policies for each of the built-in chains to ACCEPT. The main reason to do this is to ensure that you won’t be locked out from your server via SSH: iptables -P INPUT ACCEPT iptables -P FORWARD ACCEPT iptables -P OUTPUT ACCEPT Then flush the nat and mangle tables, flush all chains … Read more

Set NTP Time by command line

Usage: systemsetup -settimezone <timezone> Set current time zone to <timezone>. Use “-listtimezones” to list time zones. Usage: systemsetup -listtimezones List time zones supported by this machine. Usage: systemsetup -getusingnetworktime Display whether network time is on or off. Usage: systemsetup -setusingnetworktime <on off> Set using network time to either <on> or <off>. Usage: systemsetup -getnetworktimeserver Display … Read more

Export MySQL Databases using Command line

MySQL provides us the utility called mysqldump to export our databases. It is very easy to use utility. You can export a single database or multiple databases using this command or utility. So, Let’s see how to export a single database using mysqldump. To export a single database using mysqldump, execute the following command on … Read more

Ubuntu Network Config

I recently had to modify the NIC setup and add a virtual nic.  Thought I would save this.. as it was simple and thought i’d share.  This is using the default ens160 interface, and a sub-interface on the same nic. # This file describes the network interfaces available on your system # and how to … Read more