Create an environmental variable called OPENSSL_CONF and give it a value of: C:\ca\ca.cfg
This environmental variable references the configuration file used by the openssl commands. You can override this reference in an openssl command with the -config option on the command line.
•Example OpenSSL Configuration File