SSL fixes #1