Private key is stored encrypted in the database. A Fernet key is required in the trytond configuration file for this reason. To generate one just run python -c "from cryptography.fernet import Fernet; print Fernet.generate_key()"