I had this issue; open SSL cant cope with long names in quotes, so you need to use the 8.3 format if there is a space;
set OPENSSL_CONF="C:\Program Files\OpenSSL-Win64\bin" <diddnt work set OPENSSL_CONF=C:\PROGRA~1\OpenSSL-Win64\bin <works