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.
On the release page, download the
.tar.gzfile that matches your Linux system and architecture.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.
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.
On the release page, download the
.tar.gzfile that matches your macOS system and architecture.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.
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.
On the release page, download the
.zipfile that matches your Windows system and architecture.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.
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 mykeysda-cli.exe createKey mykeyThis creates two files:
mykey.pub.pem— your public keymykey.sec.pem— your private key
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.