Archive: nsExec and command line interaction


nsExec and command line interaction
Usually, I use OpenSSL and make a private key via DOS box.
And then I try to create an installer for Openssl (instead of via command line on DOS box), but I found some problem when I use ns(Exec) command

When I try to run this command via DOS box:

openssl req -new -out server.csr

It will returned to the next questions, like:
"country name"
"organizatioan name"
"email address, etc.."

That process force me to fill it all on the DOS box. What I want is to make nice looking installer on Windows without opening DOS box.... :(

Can NSIS interact to command line DOS box ?


It looks as if you specify the -config and/or the -pass parameters, you should be able to pass the information to openssl. It will require a custom page, etc.

For more information, try http://www.openssl.org/docs/apps/req.html

Hopefully someone else has tried something similar with generating pages that make a response file and can offer some insight.

I hope that helped :)

--_Lewellyn


Thanks, lewellyn. It works!


Good to hear! :)