Email : inbox [at] sysadmin.lk
Linkedin : https://www.linkedin.com/in/prabatht
Facebook : https://www.facebook.com/prabath.hinoize
Related Articles
Securing Asterisk IP-PBX with Fail2Ban
What is Fail2Ban? Any service that is exposed to the internet is susceptible to attacks from malicious parties. If your service requires authentication, illegitimate users and bots will attempt to break into your system by repeatedly trying to authenticate using different credentials. A common example of this is with SSH, which will be the subject […]
Delete Files Older Than X Days
Command Syntax find /path/to/files* -mtime +5 -exec rm {} \; Note that there are spaces between rm, {}, and \; This is a very simple tutorial how to find and delete files older than X days. I needed this for a project where i collected some images and after a while they took too much […]
Check SSL Certificate mismatch
You can check if an SSL certificate matches a Private Key by using the 3 easy commands below. For your SSL certificate: openssl x509 -noout -modulus -in <file>.crt | openssl md5 For your RSA private key: openssl rsa -noout -modulus -in <file>.key | openssl md5 For your CSR: openssl req -noout -modulus -in <file>.csr | […]