Ramblings from MostlyChris

Tech stuff and a bit more

Browsing Posts in Commands

Read the contents of a cert: openssl x509 -text -in [cert file] Generate 2048 bit key and CSR: openssl req -out CSR.csr -new -newkey rsa:2048 -nodes -keyout privateKey.key Creating a self-signed cert with one command openssl req -new -newkey rsa:2048 -days 365 -nodes -x509 -keyout www.example.com.pem  -out www.example.com.pem Verify key and cert match: (openssl x509 [...]

My colleague, Kale, pointed out this nice whois server that presents data in a nice and easy to read format. Just run this: whois -h whois.cymru.com " -v 72.32.231.8" You will get a nice output like this (although it doesn't fit on my screen in this example): AS      | IP       [...]

Simple Sorts

No comments

Since I am apparently unable to remember how to do a simple sort, I'm going to throw it into my blog so I can refer to it later. In this particular case, I was attempting to pull out all of the "from=" entries in the server's mail logs. I won't go into the details of [...]