Check if ssl is enabled before starting

[ci skip]