I have no experience on OpenSSL, but since this appears to be a command-line instruction you could issue it with system () redirecting the output to a file and reading it back after completion:
system ("c:\\MyFolder\\MyCommand.exe >> output.txt");
After command completion output.txt should contain command output.