fix broken logging settup
cleanup ssl cert stuff a bit