Fix up SSL and remove debugging cruft.