If it’s ignoring the -config flag then you could alternatively type this in OpennSSL prompt before generating cert, to set the location.
SET OPENSSL_CONF=D:\OpenSSL\bin\openssl.cnf
Make sure the openssl.cnf file is in whatever path you specify.
New projects are like that by default, but there’s currently an issue with them(and Android) if you don’t manually edit and save the game.project file, here: