How to Fix UNPROTECTED PRIVATE KEY FILE

Error message: david@daniel-Inspiron-531:~$ ssh-add david/.ssh/id_rsa@@@@@@@@@@@@@@@@@@@@@@@@@@@@ WARNING: UNPROTECTED PRIVATE KEY FILE! @@@@@@@@@@@@@@@@@@@@@@@@@@@Permissions 0775 for ‘david/.ssh/id_rsa’ are too open.It is required that your private key files are NOT accessible by others.This private key will be ignored.david@daniel-Ins Understanding id_rsa Private Key File ~/.ssh/id_rsa Contains the private key for authentication. These files contain sensitive data and should be readable…

How to fix unable to load Private Key

OpenSSH has its own Private Key format. It doesn’t match with OpenSSL. But We can create or convert to a Openssl style private key. Error message:ssh-keygen -t rsa -b 4096openssl rsa -in ~/.ssh/id_rsa -outform pem > id_rsa.pemunable to load Private Key140735944156104:error:0906D06C:PEM routines:PEM_read_bio:no start line:/BuildRoot/Library/Caches/com.apple.xbs/Sources/libressl/libressl-22.50.2/libressl/crypto/pem/pem_lib.c:704:Expecting: ANY PRIVATE KEY Understanding OpenSSH key File Openssh Key file is…

How Encryption works with Private Key and Public Key

Each private key has a corresponding public key. Generally, the public key can be easily derived from the private key, but deriving the private key from the public key is computationally infeasible. We will review how encryption works with public key and private key in the following example. create RSA private key with openssl command…

2 Ways to Check TLS Certificate expiration Date with OpenSSL Command

We can quickly solve TLS or SSL certificate issues by checking the certificate’s expiration from the openssl command line. Today, let us see how to check certificate’s expiration date in 2 ways. The first one is to check the certificate on remote server side. The second is to check the certificate by PEM files. Check…

Create SSL Certificate With OpenSSL Command

A self-signed SSL certificate is a security certificate that is not signed by a certificate authority (CA). These certificates are easy to make and do not cost money. The Self-signed SSL certificate is mainly used for non-production applications or other experiments. Generate private key and self signed SSL certificate Run the following OpenSSL command to…