title: Install SSL Certificates for XAMPP Apache
body: <p>I generated <code>server.key</code> using <code>openssl</code> CLI and then generated <code>server.csr</code> from that. Then I submitted <code>server.csr</code> to my company (this is all internal) and they gave me a text file which I renamed to <code>server.crt</code></p>
  
  <p>I followed this guide to install SSL Cert for XAMPP's Apache</p>
  
  <p><a href="https://knowledge.verisign.com/support/ssl-certificates-support/index?page=content&amp;actp=CROSSLINK&amp;id=AR193" rel="noreferrer">https://knowledge.verisign.com/support/ssl-certificates-support/index?page=content&amp;actp=CROSSLINK&amp;id=AR193</a></p>
  
  <p>Basically I edited the <code>httpd-ssl.conf</code> file with below:</p>
  
  <pre><code>SSLCertificateFile "conf/ssl.crt/server.crt"
  
  SSLCertificateKeyFile "conf/ssl.key/server.key"
  
  SSLCACertificatePath "conf/ssl.crt/"
  SSLCACertificateFile "conf/ssl.crt/server.crt"
  </code></pre>
  
  <p>When I restarted my Apache server, it failed and gave error:</p>
  
  <pre><code>[Thu May 08 14:14:48.014710 2014] [ssl:warn] [pid 1924:tid 272] AH01906: RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
  [Thu May 08 14:14:48.016664 2014] [ssl:warn] [pid 1924:tid 272] AH01907: RSA server certificate is not a leaf certificate (BasicConstraints: pathlen == 2 &gt; 0 !?)
  [Thu May 08 14:14:48.016664 2014] [ssl:warn] [pid 1924:tid 272] AH01909: RSA certificate configured for www.myservername.com:443 does NOT include an ID which matches the server name
  [Thu May 08 14:14:48.016664 2014] [ssl:emerg] [pid 1924:tid 272] AH02238: Unable to configure RSA server private key
  [Thu May 08 14:14:48.016664 2014] [ssl:emerg] [pid 1924:tid 272] SSL Library Error: error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch
  [Thu May 08 14:14:48.016664 2014] [ssl:emerg] [pid 1924:tid 272] AH02311: Fatal error initialising mod_ssl, exiting. See C:/xampp/apache/logs/error.log for more information
  </code></pre>
  
  <p><strong>Anyone knows why? How to fix this?</strong></p>
  
  <p>Here are my system info</p>
  
  <pre><code>Windows NT LGLAC046 6.1 build 7600 (Windows Server 2008 R2 Enterprise Edition) i586 
  
  Apache/2.4.4 (Win32) OpenSSL/0.9.8y PHP/5.4.19 
  
  OPENSSL_CONF    C:/xampp/apache/bin/openssl.cnf 
  
  SSL Version     OpenSSL/0.9.8y 
  </code></pre>