If you’ve just set up apache and you try using the SSL feature, you’ll most probably get the following error:

Invalid command ‘SSLEngine’, perhaps misspelled or defined by a module not included

This is caused by modssl not being enabled. modssl comes bundled with the apache-common package but it is not enabled by default. To enable it execute the following:

a2enmod ssl  

You may then restart apache;

/etc/init.d/apache2 restart