Prepare for download

Before you can download approved files from FEGA Sweden, you need to install the download tool and generate a Crypt4GH key pair.

1. Prepare your system

Download the latest release of sda-cli from GitHub:
https://github.com/NBISweden/sda-cli/releases/latest

Choose the asset that matches your operating system (Linux, macOS, or Windows) and system architecture (arm64 or x86_64). For macOS, the release asset names use Darwin.

  1. On the release page, download the .tar.gz file that matches your Linux system and architecture.

  2. Open a terminal, go to the directory where the file was downloaded, and extract it. For example:

    tar -xvzf sda-cli_vX.Y.Z_Linux_x86_64.tar.gz

The extracted file will be the sda-cli binary.

Note

You may want to move the sda-cli binary to a directory in your PATH such as /usr/local/bin to make it easier to run.

  1. On the release page, download the .tar.gz file that matches your macOS system and architecture.

  2. Open a terminal, go to the directory where the file was downloaded, and extract it. For example:

    tar -xvzf sda-cli_vX.Y.Z_Darwin_x86_64.tar.gz

The extracted file will be the sda-cli binary.

Note

You may want to move the sda-cli binary to a directory in your PATH such as /usr/local/bin to make it easier to run.

  1. On the release page, download the .zip file that matches your Windows system and architecture.

  2. Open Command Prompt, go to the directory where the file was downloaded, and extract it. For example:

    tar -xf sda-cli_vX.Y.Z_Windows_x86_64.zip

The extracted folder will contain the sda-cli.exe binary. Change into that folder before running the commands in the next step.

Note

You can also extract the .zip file by right-clicking it in File Explorer and selecting Extract All….

2. Generate a Crypt4GH key pair

Use sda-cli to generate a public and private key pair. In the examples below, mykey is a filename prefix of your choice:

./sda-cli createKey mykey
./sda-cli createKey mykey
sda-cli.exe createKey mykey

This creates two files:

  • mykey.pub.pem — your public key
  • mykey.sec.pem — your private key
Caution

Do not delete or share your private key (mykey.sec.pem). You will need it to decrypt the files after download.

3. Send us your public key

Attach your public key file (mykey.pub.pem) to an email and send it to fega-sweden@nbis.se.

Once we have received your public key, we will encrypt the approved files for you and provide instructions on how to download them.