Create a strong CSR and private key openssl req -new -nodes -newkey rsa:4096 -out server.crt -keyout server.key Parsing out the data within a certificate openssl asn1parse -in server.crt Checking a certificate/key modulus to see if they correspond openssl rsa -in server.key -modulus -noout | openssl md5 openssl x509 -in server.crt -modulus -noout | openssl md5 Convert a key […]
Tag: tip
/dev/null not found?
Today I came across a box with no /dev/null. Disturbingly that box even refused to boot. Here’s a quick fix in case: Boot with some liveCD and chroot or use some emergency shell and kill the defect dev file in case it’s still there and regenerate: rm -rf /dev/null mknod /dev/null c 1 3 chmod 666 /dev/null
Show the TCP connections made
This is a small snippet which has helped me on my server; showing you the top tcp connections made: netstat -atun | awk ‘{print $5}’ | cut -d: -f1 | tail -n+3 | sed -e ‘/^$/d’ |sort | uniq -c | sort -n -r Nothing funky, but a life saver sometimes ;)
Skype uses SQLite
Skype uses SQLite too! Even if you don’t believe it, but it’s one of the most handy things for getting data structured; But as every database, even sqlite needs some love every now and then. On a linux box, the databases of Skype are in ~/.Skype// and their extension is .db; Contacts, Logs and all that jazz in […]
No SSD? Take a slow HDD instead!
Nowadays, when buying a new laptop, you may choose whether you like to have a SSD disk or a traditional ‘spinning disk’. There’s nothing special about it, you might say but I could observe that the HDD drives used are the cheapest crap available: 5400 RPM and a lousy small cache. A recent disk should be at 7200 […]
Doing a disk change
If you run out of disk space, it’s time to get yourself a newer one; Basic rule for users. In my case, I’m just the one who’s doing the technical work behind, which is less troublesome than the user. To save me some headache, I usually start by replacing the disk in the PC first and wiring up […]