How to Generate a Public-Private Key Pair

This article describes how to generate a PGP keypair that you can use in GoodData SSO implementation (see Single Sign-On Overview).

To generate a new public-private key pair, use one of the following methods:

  • A desktop application, for example:
  • The gpg command line utility:
    1. Generate a new keypair:

      gpg --full-generate-key
      • If you are using the gpg command line utility older than release 2.3.1, keep the predefined default option - (1) RSA and RSA - for the type of the key to generate.
      • If you are using the gpg command line utility release 2.3.1, choose the option (1) RSA and RSA for the type of the key to generate instead of the default option (9) ECC (sign and encrypt).
    2. Export the keypair to a file (use the same email address that you used for generating the key pair):

      gpg --export -a "email@address.com" > public.key
    3. Download the GoodData public PGP key.
    4. Import the GoodData public key to your keystore:

      gpg --import gooddata-sso.pub
Powered by Atlassian Confluence and Scroll Viewport.