The -batch optional parameter causes the openssl req command to not prompt for any of the information fields. I use it this way without a config file for automation of self-signed certs.
It is listed in the help:
openssl help req
...
...
-batch Do not ask anything during request generation