MicrosoftTeams-image

How to Convert an SSL Certificate to Other Formats

It is highly recommended that you convert to and from .pfx files on your own machine using OpenSSL so you can keep the private key there. Use the following OpenSSL commands to convert SSL certificate to different formats on your own machine: OpenSSL Convert PEM Convert PEM to DER openssl x509 -outform der -in certificate.pem Read More

MicrosoftTeams-image

How to Fix “missing newline or line too long” in a Linux Server

Question How to remove the following errors when noticed in “/etc/hosts.allow” and “/etc/hosts.deny” files. 1) auth|security:err| error sshd[7275222]: warning: /etc/hosts.allow, line0: missing newline or line too long 2) auth|security:err| error sshd[7275222]: warning: /etc/hosts.deny, line0: missing newline or line too long Answer To remove the errors do the following on the management node as root. Go to the Read More

MicrosoftTeams-image

How to Allow SSH Access Based on Country

GeoIP database has records of Geographical location based on IP address. Using this database we can search for any IP belonging to which country using the Linux command line. This article will help you to allow SSH or FTP (vsftpd) access based on the user’s country. This example uses TCP wrappers to secure your services. Read More

MicrosoftTeams-image

Using Multiple SSL Certificates in Apache with One IP Address

When website administrators and IT personnel are restricted to use a single SSL Certificate per socket (combination of IP Address and socket) it can cost a lot of money. This restriction causes them to buy multiple IP addresses for regular https websites from their domain host or buy hardware that allows them to utilize multiple Read More

MicrosoftTeams-image

How to Redirect www to non-www in Apache with .htaccess

Sometimes you may need to redirect www URLs to non-www URLs for your website for SEO benefits. Here’s how to redirect www to non-www in Apache htaccess. You can use these steps to ensure that there is only one version (non-www) of your website available online. How to Redirect www to non-www in Apache htaccess Read More

MicrosoftTeams-image

How to Install WordPress with LAMP on CentOS Stream 9

WordPress is a commonly used PHP-based CMS (Content Management System). For small businesses, personal blogs & websites, WordPress can be a good fit.  In this article, we are going to learn how to install WordPress on CentOS Stream 9. So, let’s get started. Pre-requisites : 1, A system with CentOS Stream 9 installed and running.2, Read More