Generate CSR using openssl

Browsers started to warn users about certificates with Sha1 signature. Sha256 is needed now a days. So it’s time to renew certificates from Thawte, Godaddy, etc You can generate a new Certificate Signing Request with openssl with this command: openssl req -nodes -newkey rsa:2048 -keyout servername.key -out servername.csr -sha256 “servername.csr” is an ascii file you can send …

Continue reading ‘Generate CSR using openssl’ »

Debian 8 Uses only One Core of a Multi Core CPU

Problem: A fresh installed Debian 8 (Jessie) 32bit 686 uses only one core of a 6 core Xeon CPU. amd64 kernels don’t have this problem. Solution: The HP Proliant DL360 Gen9 has a BIOS option called “Processor x2APIC Support”. When you set this option to “Disabled” the Linux kernel uses all 6 cores. x2APIC is a …

Continue reading ‘Debian 8 Uses only One Core of a Multi Core CPU’ »

Openbox goes weird with R.A.T.5 Mad Catz

Problem: when you connect the Mad Catz R.A.T.5 mouse to a Linux box running openbox window manager, the window handling stops working. Sometimes mouse follow focus does not work, sometimes even  clicking a window cannot activate it. Sometimes clicking window borders does not work, sometimes clicking into windows is ignored. Solution: This mouse has a mode button, which is …

Continue reading ‘Openbox goes weird with R.A.T.5 Mad Catz’ »

USB SCSI Disconnects when Idle

Problem: An external USB harddrive disconnects and immediately reconnects with different device name. You find log entries like these: Jan 17 00:46:52 workstation kernel: [212306.086568] sd 33:0:0:0: [sdj] Attached SCSI disk Jan 17 01:51:14 workstation kernel: [216168.064075] usb 2-4: USB disconnect, device number 11 Jan 17 01:51:15 workstation kernel: [216168.596514] usb 2-4: new SuperSpeed USB device …

Continue reading ‘USB SCSI Disconnects when Idle’ »

Howto generate an SSL key and self signed cert with openssl

For SSH, HTTPS, TLS SMTP,POPS, IMAPS you need a RSA key pair. Most Linux package installers produce this pairs automatically, but if you like, you can generate them yourself. The quickest method I found is: openssl req -x509 -nodes -newkey rsa:2048 -keyout servername.key -out servername.crt -days 1024 This command asks you some questions. The most …

Continue reading ‘Howto generate an SSL key and self signed cert with openssl’ »

Unix/Linux date command fails when calculating “yesterday”

Problem: A shell-script running every day short after midnight doesn’t work properly once per year after daylight-saving time adjustment. e.g. an expected logfile is missing (“somefile.YYYYMMDD.log”) Discussion: The Unix date command calculates the wrong date when used with “–date yesterday” on the day after daylight-saving time adjustment. # date Mon Mar 31 00:15:03 CEST 2014 # date …

Continue reading ‘Unix/Linux date command fails when calculating “yesterday”’ »