remove extra ssl imports (closes #23053)

Patch from Jan Matejek.
merge 3.4 (#23053)