Code: Select all
vesta/web/generate/ssl/index.php
Code: Select all
exec (VESTA_CMD."v-generate-ssl-cert ".$v_domain." ".$v_email." ".$v_country." ".$v_state." ".$v_locality." ".$v_org." IT '' json", $output, $return_var);
The cause of the bug is the missing definition of the VESTA_CMD constant. This constant should be defined with the appropriate command for generating the SSL certificate. However, since it is not defined in the provided code, the exec function fails to execute the command, leading to an error.
one example would be to define the VESTA-CMD constant
Code: Select all
define('VESTA_CMD', '/path/to/v-generate-ssl-cert');
Once you have defined the VESTA_CMD constant, the exec function will be able to execute the command successfully, and the SSL certificate generation should work as expected.
im not familiar with how all code in myVesta works...but this might be an improvement or not..