Move SSL setup to initialization function