Use the right  variable. Also exclude optional ssl cert and key values from the config file if they're absent.