When working with networks that require security, if we request to sites that use HTTPS, we will often encounter issues related to the SSL certificate, my example is as follows:
[docker@minishift ~]$ curl https://auth.docker.io
curl: (60) Peer's certificate issuer has been marked as not trusted by the user.
More details here: http://curl.haxx.se/docs/sslcerts.html
curl performs SSL certificate verification by default, using a "bundle" of Certificate Authority (CA) public keys (CA certs). If the default bundle file isn't adequate, you can specify an alternate file using the --cacert option.
If this HTTPS server uses a certificate signed by a CA represented in the bundle, the certificate verification probably failed due to a problem with the certificate (it might be expired, or the name might not match the domain name in the URL).
If you'd like to turn off curl's verification of the certificate, use the -k (or --insecure) option.
To resolve this error, we need to download the certificate for that site and… Read More
Suppose you are working in a Linux system with multiple Java versions installed. So how to change the version of Java from this version to another version, this tutorial will guide you to do it! For example, I’m using Ubuntu, and my Ubuntu is installing… Read More
This tutorial will guide you to check the hard drive space using the command df in Linux. The command df is used to get information about the entire drive on the Linux system, how much space is used and how much space can be used.… Read More
To disable the user’s command line, you can run the following command:
usermod -s /sbin/nologin <username>
At that point, the user will no longer be able to use the command line. To enable it, run the following command:
chsh -s /bin/bash <username>
SSH is a tool for us to log on to another machine from our computer. This tutorial will guide you how to copy any file from one computer to another using SSH. To copy a file from your computer to another machine, use the following… Read More
When working with Linux system, we usually work with the tar.gz files using tar tool. So that, we need to know how we can create and extract them. In this tutorial, I will show you how to create and extract tar.gz file using tar tool in… Read More