Hi !
I try to upload an certificate for a subdomain, but i get always the following error:
Code
- [Wed May 7 20:08:21 2014] [debug] iMSCP::Dir::_get: Opening directory /var/www/imscp/engine/PerlLib/Servers
- [Wed May 7 20:08:21 2014] [debug] iMSCP::Dir::_get: Opening directory /var/www/imscp/engine/PerlLib/Addons
- [Wed May 7 20:08:21 2014] [debug] iMSCP::Execute::execute: Executing command: /usr/bin/openssl rsa -in /var/www/imscp/gui/data/certs/subdomain.pem -noout -passin file:/tmp/NsMBjCIoc_
- [Wed May 7 20:08:21 2014] [debug] iMSCP::Execute::getExitCode: External command exited with value 0
- [Wed May 7 20:08:21 2014] [debug] iMSCP::Execute::execute: Executing command: /usr/bin/openssl verify -CAfile /var/www/imscp/gui/data/certs/subdomain.pem /var/www/imscp/gui/data/certs/subdomain.pem
- [Wed May 7 20:08:21 2014] [debug] iMSCP::Execute::getExitCode: External command exited with value 2
- [Wed May 7 20:08:21 2014] [debug] iMSCP::OpenSSL::ssl_check_cert: /var/www/imscp/gui/data/certs/subdomain.pem: C = GB, ST = Greater Manchester, L = Salford, O = COMODO CA Limited, CN = COMODO RSA Domain Validation Secure Server CA
- error 2 at 1 depth lookup:unable to get issuer certificate
I take a look on the tested/created pem file and see, that the ca-bundle has loose the ca-root certificate. This is the problem why the openssl verify could not resolve the trusted chain. Is it an bug that only one ca-crt will be transfert or have i to manage the root-ca on a other way ?
regard
exe