fix the certificate handling in settings

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