0

I am getting the error

SSLCertificateFile: file '/etc/apache2/~/joebloggs/somesite_com.crt' does not exist or is empty

Due to the following line written in default-ssl.conf

SSLCertificateChainFile ~/joebloggs/somesite_com.crt

In order to refer to the file home/joebloggs/joebloggs/somesite_com.crt

I've also used ../ to try and go up a directory when attempting to create a relative address to the crt, but this fails also. Anybody know what is going wrong?

  • 1
    Use of ~ is ambiguous and I highly advise you use the full path in scripts and similar. In this case, in the best case scenario, apache runs as www-data and there is no /home/www-data . – Panther Aug 15 '17 at 20:02
4

The tilde (~) referring to one's $HOME directory is a bash (and other shells') feature.

Apache does not support this feature.

You must specify the file as /home/joebloggs/joebloggs/somesite_com.crt

  • Agreed but I would add ~ is ambiguous and should not be used in scripts or configuration files. Even if it were supported by Apache, on Ubuntu Apache runs as www-data and there is no /home/www-data and even if there were the certificate is not there, it is in /home/joebloggs – Panther Aug 15 '17 at 20:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.