If you have your SSL certificate in p7b format and need to convert to pfx format, you’ll need 3 files. The private key you get when generating your CSR The p7b certificate file The rootca bundle file Use the following command to generate your pfx certificate. openssl pkcs12 -export -in p7bcert.crt -inkey private.key -out outfile.pfx …
Unable to send scripted mails through Office 365 SMTP
Recently we received complaints from our programmers saying their codes to send emails via smtp.office365.com were failing due to login failure. We checked and found that the issue is due to the introduction of Security Defaults in Azure security to block legacy authentication methods. As a quick solution, we resorted to turning off the securiy …
Error creating winpty
I’ve recently upgraded my Microsoft Windows 10 to version 1909. The first issue I experience when I wanted to resume my programming tasks were “php artisan serve” encountered the following error. Error creating winpty: ConnectNamedPipe failed: Windows error 232 Based on my research, it was due to antivirus blocking winpty. I was using Git Bash …
Gmail “All Mail” IMAP folder missing in Microsoft Outlook
I’ve upgraded my Microsoft Outlook to Microsoft Outlook 2016/365 and added IMAP connection to my Gmail account. I was expecting that all IMAP folders to be listed as per my older Outlook. Unfortunately I found that all folders were available except the All Mail folder. This folder will list all emails available in my Gmail …
Enable ini_set using custom php.ini
If you’re on shared hosting using cPanel as the control panel, you’d probably has the same problem as mine. The ini_set function is disabled by the hosting company for security purposes. Yeah, I know it’s for security purposes, but if I have to use it, I have to use it. So I’ve learned from others …
Compact a Linux vhdx for Hyper-V via PowerShell
To compact a vhdx file via command line (PowerShell) > mount-VHD -Path c:\VM\virtual_machine.vhdx -ReadOnly > optimize-VHD -Path c:\VM\virtual_machine.vhdx -Mode Full > dismount-VHD -Path c:\VM\virtual_machine.vhdx References:- Optimize-VHD Compact Linux guest virtual hard disk
Exim: lowest numbered MX record points to local host
Recently I’ve configured a client’s hosting to point its MX to an external Spam Filter. After pointing to the new MX server, I started receiving the following errors:- lowest numbered MX record points to local host and Please turn on SMTP Authentication in your mail client.
SSH take long time to login on CentOS
Using the default setup in SSH, it usually takes about 30 seconds to 1 minute to get the command prompt after the login credentials were entered. I suspected it could be the DNS resolution issue and based on this webpage, it confirmed my suspicion. As I do not need the SSHD to get the dns …
Resize root LVM partition on CentOS
I installed my server using the default partition sizes recommended during installation. Over time, I realized that I used more space of other partitions than /home. After much searching around, this is what I did to get my server’s partition resized. “WARNING! THE FOLLOWING STEPS MAY CAUSE DAMAGED TO YOUR PARTITION AND IRRECOVERABLE DATA LOSS. …
‘Afsql’ error on syslog-ng resolved
I encountered the `module=’afsql’` error after the installation of syslog-ng on CentOS 6.5. The error is as below:- Plugin module not found in ‘module-path’; module-path=’/lib64/syslog-ng’, module=’afsql’ I’ve resolved the problem based on this forum discussion. [thanks] The solution is to install syslog-ng-libdbi using the following command. yum install syslog-ng-libdbi