Add option to export certificate from preferences

Signed-off-by: Lehner Florian <dev@der-flo.net>