Category SSL

Understanding PKCS8 vs PKCS1 vs PKCS12

PKCS8 is the eighth of the Public-Key Cryptography Standards (PKCS) and is a syntax for storing private key material. The private keys may be encrypted with a symmetric key algorithm. If the usage of your key requires it to be…

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.…

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 4096 openssl rsa -in ~/.ssh/id_rsa -outform pem > id_rsa.pem unable…

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. In a public-key cryptosystem, a public key is…

Check Root CA Certificates in Linux

Root certificate is the first link in the chain of trust, . Unlike other certificates, it is self-signed, meaning the issuer and subject are the same. It is a kind of X.509 certificate that can be used to issue other…

Check SSL Encryption in Linux

SSL encryption applies two keys named Public key and Private Key to encrypt connection. Both keys are similar in nature but their usage is different. Even these keys length may vary in terms of bits. The more the key is…

Convert SSL Cer to PEM by OpenSSL

There are two major encoding schemes for X.509 certificates and keys: PEM (Base64 ASCII), and DER (binary). DER (Distinguished Encoding Rules) is a data object encoding schema that can be used to encode certificate objects into binary files. PEM (Privacy…

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…