fixes #2929 - generate encryption key and encrypt data in postinstall

Tested clean installs and upgrades on EL6 successfully.

Debian version: https://github.com/theforeman/foreman-packaging/pull/191