Fix key generation and trac deployment