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

Patch by Christian Heimes and Alex Gaynor.
separate cert loading tests into Windows and non-Windows cases