Make SSL store type optional, close #1226