Timing issue on cert/key verification

Version 1.5

Bugfix
Finished

To verify certificate/key validity, DA makes calls to openssl. As the openssl calls used stdin, DA would call them and then pipe the info across. The issue was that on some slower systems, openssl would provide some output, pause, and then produce more output, confusing DA's listener, so DA closed the pipe too soon, breaking the call, causing openssl to return a non-zero result. I've changed the behavior to create temp files with mkstemp for the cert/key files, and then just pipe the data over using the shell < character. This lets DA to simply wait for the process to exit normally.

Interested to try DirectAdmin? Get a 30-day Free Trial!