fixed SSL validation skipping patch