Note that there are some explanatory texts on larger screens.

plurals
  1. POssl virtual host issue on EC2 LAMP
    text
    copied!<p>I am having issues with <code>SSL</code> and <code>virtual hosts</code> on my <code>EC2</code> <code>LAMP</code> instance<br/> My virtual host prevents <code>service httpd start</code> to work, im getting <code>[FAILED]</code> without any clues as to why.<br/> I have a <code>ssl.conf</code> present in my <code>conf.d</code> folder.<br/><br/> I dont seem to see any error logs inside <code>/var/log/httpd</code><br/> Also <code>ssl_engine.log</code> is empty<br/></p> <pre><code>&lt;VirtualHost *:443&gt; ServerName app.mydomain.com DocumentRoot /var/www/app.mydomain.com SSLEngine on SSLCertificateFile /etc/ssl/certs/certificate.crt SSLCertificateKeyFile /etc/ssl/certs/app_mydomain_com.key SSLCACertificateFile /etc/ssl/certs/mydomain.ca.crt ErrorLog /var/log/ssl_engine.log &lt;/VirtualHost&gt; </code></pre> <p>are there any test i can perform to better understand where the error might be coming from? <br/><br/> Im finding out that when i get rid of <code>ssl.conf</code> and any virtual domain with <code>&lt;VirtualHost *:443&gt;</code> apache will start, other wise nothing happens and i cant seem to find any error logs.</p> <p><strong>update:</strong> i took this out of <code>ssl.conf</code> and apache will now start.<br/> working backwards to see how this is creating an error<br/></p> <pre><code>&lt;VirtualHost _default_:443&gt; ErrorLog logs/ssl_error_log TransferLog logs/ssl_access_log LogLevel warn SSLEngine on SSLProtocol all -SSLv2 SSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM:+LOW &lt;Files ~ "\.(cgi|shtml|phtml|php3?)$"&gt; SSLOptions +StdEnvVars &lt;/Files&gt; &lt;Directory "/var/www/cgi-bin"&gt; SSLOptions +StdEnvVars &lt;/Directory&gt; SetEnvIf User-Agent ".*MSIE.*" \ nokeepalive ssl-unclean-shutdown \ downgrade-1.0 force-response-1.0 CustomLog logs/ssl_request_log \ "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b" &lt;/VirtualHost&gt; </code></pre> <p><strong>finally got an error</strong> <br/> <code>SSL Library Error: 185073780 error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch</code></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload