Archive for the ‘System Administration’ Category

Today when I opened my self-signed secure website, it gave me following error: The key does not support the requested operation. (Error code: sec_error_invalid_key) But in the past it was like: What I did wrong? Oh yes, Firefox upgraded to 33.0 (now 33.1), something broken in 33+ and was working fine with Firefox 32.0?

Playing with exim mail queue

Posted: 14th October 2014 by Babar Shafiq in System Administration
Tags: , , , ,

Command to view the queue To view the exim mail queue issue the following command: mailq OR exim -bp If exim is in /usr/sbin and /usr/sbin is not in your path, you’ll need to prefix the command with the full path like so: /usr/sbin/exim -bp Example output The outut from the above commands will look […]

To work around this issue, add the EnableAggressiveMemoryUsage registry entry to the following registry subkey: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\HTTP\Parameters Then, set the EnableAggressiveMemoryUsage registry entry to 1. To do this, follow these steps: Click Start, click Run, type regedit in the Open box, and then click OK. Click the following registry subkey: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\HTTP\Parameters On the Edit menu, point […]

One of my blog user “Chris” asked for FTP clean up script, so here it is: //CONFIG SECTION //******************************************************* // Credentials for FTP Server $source_server_ip = “your_domain_or_IP”; // Server IP or domain name eg: 212.122.3.77 or ftp.domain.tld // Credentials for FTP account $ftphost = “ip_or_hostname_of_ftp”; // FTP host IP or domain name $ftpacct = “userid”; […]

Verify SSL certificate using OpenSSL

Posted: 11th March 2014 by Babar Shafiq in System Administration
Tags: , , ,

Use this command to verify the SSL certificate for the domain www.somedomain.com openssl s_client -showcerts -connect www.somedomain.com:443 If the certificate is correctly installed the result should contain at the end: Verify return code: 0 (ok) That’s it

Password encrypted files in Linux

Posted: 25th February 2014 by Babar Shafiq in System Administration
Tags: , , , , , , , ,

  I am found of keeping password protected backups and most of the time I lost my super secret password thus unable to open my super important backups 🙂 just kidding. Like in windows we can simple right click and zip folders/files with passwords in text based terminals of linux I always want the same. […]