It's already been noticed in more than one issue, such as #2795, that trying the openssl command in interactive mode may cause errors when certain commands are combined, for example all those using -config to load an extra configuration file.
How to solve this remains to be decided. Cleanup of internal data between commands? Remove the interactive mode?