Add support for SSL

No tests for now, because the tests all use a single config.