Generate SSL Certificates, Private Keys, and CSRs Using OpenSSL

Lakshmi Srinivas
Updated on 18-Oct-2019 11:39:32

5K+ Views

OpenSSL is a CLI (Command Line Tool) which can be used to secure the server to generate public key infrastructure (PKI) and HTTPS. This article helps you as a quick reference to understand OpenSSL commands which are very useful in common, and for everyday scenarios especially for system administrators.Certificate Signing Requests (CSRs)If we want to obtain SSL certificate from a certificate authority (CA), we must generate a certificate signing request (CSR). A CSR consists of mainly the public key of a key pair, and some additional information. Both these components are merged into the certificate whenever we are signing for ... Read More

Use Date Command in Day-to-Day Practical Usage

Lakshmi Srinivas
Updated on 18-Oct-2019 11:37:34

313 Views

In this article, we will learn about the ‘date’ command in Linux and how to practically use the ‘date’ command in day-to-day usage with some practical examples. The ‘date’ command is used to print or to change the system date and time.General Syntax[root@localhost ~]# date [OPTION]... [+FORMAT] [root@localhost ~]# date [-u|--utc|--universal] [MMDDhhmm[[CC]YY][.ss]]The Date Command has the following UsagesWe can print date and time on the systemWe can display the date and time in the given format.We can read the date from the fileWe can display the Universal time.We can set the system date and time.Displaying the Date and Time from ... Read More

Make Twitter Bots in Less Than Five Minutes

Lakshmi Srinivas
Updated on 18-Oct-2019 11:33:25

243 Views

Did you anytime notice about automatically answering questions posted on Twitter and you desire to make one for yourself? you can do it. We find, Twitter bots not only answering the questions, but it also shares its source. You can copy as well make your own little assistant.Twitter Bots DesignThe Twitter bots are designed for the purpose of Tweeting, retweeting and sharing varied Tweets. That’s not all, Twitter bots can not only follow a specific Twitter user, but it also can correct spelling mistakes depending upon the program specification.Google ScriptsIn the past, python program codes were used, but in recent ... Read More

Install Guake Drop Down Terminal on Ubuntu

Lakshmi Srinivas
Updated on 18-Oct-2019 11:30:02

745 Views

Guake is a drop-down terminal for GNOME and any other desktop. It aims to provide a quick-access terminal, that show/hide on screen with a simple key pressing. Its style of window is based on an fps games, and one of its goals is being easy to reach. Guake is written mostly in python and has a little piece in C. This article explains about how to install Guake terminal on Ubuntu.FeaturesIt is a Lightweight terminalSimple Easy and ElegantSmooth integration of terminal into GUIIt Appears when you call and disappears once you are done by pressing a predefined hotkey (F12 by ... Read More

Check if First and Last Characters of String are Equal in C++

Sunidhi Bansal
Updated on 18-Oct-2019 11:27:44

1K+ Views

Given with an input of string and the task is to check whether the first and last characters of given string is equal or not.ExampleInput-: study Output-: not equal    As the starting character is ‘s’ and the end character of a string is ‘y’ Input-: nitin Output-: yes it have first and last equal characters    As the starting character is ‘n’ and the end character of a string is ‘n’Approach used below is as follows −Input the string and store in an array of strings.Calculate the length of a string using length() functionCheck first and last element of ... Read More

Secure Apache Using Let's Encrypt SSL Provider

Lakshmi Srinivas
Updated on 18-Oct-2019 11:23:23

239 Views

In this article, we will learn how to setup TLS/SSL certificates using the “Let’s Encrypt” on Ubuntu server with Apache as a web server, we shall also cover how to automate the certificate renewal using corn jobs.PrerequisitesTo complete this demo we needed to have the below requirementsAn Ubuntu server with a user with sudo permissions.Apache server installed on it with a proper domain name configured.Installing the Dependencies on ServerWe needed to update the server using the below command and install the git to get the Let’s Encrypt client from the repository.$ sudo apt-get update$ sudo apt-get install gitDownload the Let’s ... Read More

Calculate Edge Cover of a Graph in C++

Sunidhi Bansal
Updated on 18-Oct-2019 11:22:39

287 Views

Given a n number of vertices of a graph, the task is to calculate the edge cover of the graph. Edge cover is to find the minimum number of edges required to cover every vertex of the graph.Like we have n = 5Then its graph will be like −So its edge cover is 3Let’s take another example where the n is 8And its edge cover will be:4ExampleInput: n= 5 Output: 3 Input: n= 8 Output: 4Approach used below is as follows −Take the input from the userFind the ceiling value of the result of number of vertices by dividing it ... Read More

Install and Configure FTP Server in CentOS 7

Lakshmi Srinivas
Updated on 18-Oct-2019 11:19:58

1K+ Views

In this article, we will learn how to configure FTP server on CentOs 7 using ‘vsftpd’. ‘vsftpd’ (Very Secure File Transport Protocol Daemon) is a secure and very fast FTP server on Linux systems.Installing ‘vsftpd’Below is the command to install the ‘vsftpd’, we needed a root user to run the following command# yum install vsftp ftp –y Loaded plugins: fastestmirror, refresh-packagekit, security Loading mirror speeds from cached hostfile * base: ftp.iitm.ac.in * extras: ftp.iitm.ac.in * updates: ftp.iitm.ac.in Setting up Install Process No package vsftp available. Resolving Dependencies --> Running transaction check ---> Package ftp.x86_64 0:0.17-54.el6 will be installed --> Finished ... Read More

C++ Program to Calculate Profit or Loss

Sunidhi Bansal
Updated on 18-Oct-2019 11:18:06

4K+ Views

Given with the cost price(CP) and the selling price(SP) and the task is to calculate the profit gained or loss incurred.Cost price or CP is the price at which the product is purchased by the seller and the selling price or SP is the price at which the product is sold by the seller.There is a formula to calculate profit gained or loss incurredProfit = Selling price – Cost priceIf Selling price is greater than cost price than there will be a profitLoss = Cost price – Selling priceIf cost price is greater than selling price than there will be ... Read More

Configure and Secure Server Setup on CentOS 7

Lakshmi Srinivas
Updated on 18-Oct-2019 11:15:36

572 Views

In this article, we will learn some configuration steps that should be taken care for security purpose and usability, just after a new server is installed. This will help us in building a solid foundation.Avoiding the ‘root’ user LoginThe root is the administrator or the super user in the Linux environment, who has all the privileges on the system. Generally, it is highly recommended to use the root user directly, as it may cause many issues or any accidental loss of data or due to any changes which may be done accidentally.In the next step, we will be setting up ... Read More

Advertisements