Skip to content

Latest commit

 

History

History

db

Vault database updates for distribution

You SQL files in the directory contains the database functions used by the distribution system.

They are file system listings, Crypt4GH header re-encryption, and triggers to build the NSS files.

You'll need to install the Crypt4GH postgres extension, and update the postgres configuration file (usually pg.conf) with the crypt4gh.master_seckey setting. In particular, if the crypt4gh python package is installed, you can get the HEX format of the private key with a few lines of python code

import crypt4gh.keys
key = crypt4gh.keys.get_private_key("/path/to/master.key.sec", lambda: "passphrase")
print(key.hex())

Replace /path/to/master.key.sec and the passphrase accordingly.