I'm working on an application that uses openssl, which is installed and working properly. I can generate, sign etc. certificates from a console. I've been trying to get openssl to do a batch of certificate requests called by php, however I can't seem to make it work.
The command I'm using is:
exec("openssl req -new -config cert.cnf -keyout request.pem -out request.pem -days 365");
I know the part in the double quotes works from a command line, but for some reason the generation doesn't work when called to execute by php. It just seems to sit there and do nothing.. Does anyone know if I'm using the wrong command or syntax. Or even if calling openssl from within php like this is even possible.
Thanks for your help.