Resolving bug with SSL