Keypair (public and a private key)

> Software Security > Cryptography - Key

1 - About

A keypair is a pair of keys:

  • a public key: Used for encryption or signature verification;
  • and a private one: The decryption key which is kept secret decrypt and sign.

They are a component of the public key scheme.

Advertising

3 - Management

3.1 - Creation

Different tool create different format.

3.1.1 - keytool

With the Java keytool utility, generation of a keypair and creation of a (Java) key store (Jks) with the rsa implementation algorithm.

keytool \
    -genkeypair 
    -alias aliasEntry
    -keyalg RSA 
    -keystore keyStoreName.jks 
    -dname "[email protected], CN=KeyName, OU=Programs Partners, O=Organisation, L=Town, C=NL" 
    -storepass keyStorePassword 
    -keysize 2048 
    -keypass keyPassword

where:

3.1.2 - keygen

SSH - KeyGen to create a key pair in the pem format

3.1.3 - putty

Putty has a tool to create key pair in a ppk format

security/key/keypair.txt · Last modified: 2018/12/06 10:25 by gerardnico