Daniel Cao

Daniel Cao

Create ECDSA Key with ssh keygen command

ECDSA (elliptic curve digital signature algorithm), or ECC (elliptic curve cryptography) as it’s sometimes known, is the successor of the digital signature algorithm (DSA). ECDSA was born when two mathematicians named Neal Koblitz and Victor S. Miller proposed the use…

2 Ways to create private key in Linux

Public key authentication relies on asymmetric cryptographic algorithms that generate a pair of separate keys (a key pair), one “private” and the other “public”. We keep the private key a secret and store it on the computer you use to…

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…