also use openssl envvars to find certs on windows (closes #22449)

Patch by Christian Heimes and Alex Gaynor.
merge 3.4 (#22449)
separate cert loading tests into Windows and non-Windows cases
merge 3.4