title: Apache 2.4 and SSL: AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate
body: <p>I was all the day searching in google and here, and nothing works to me.</p>
  
  <p>I have a <strong>Ubuntu 16.04</strong> server with <strong>Apache 2.4</strong> with multiple virtual hosts. I am trying to configure a <strong>Self-Signed SSL Certificate</strong> for one of my sites. I follow this two tutorials:</p>
  
  <p><a href="https://www.digitalocean.com/community/tutorials/how-to-create-a-self-signed-ssl-certificate-for-apache-in-ubuntu-16-04" rel="nofollow noreferrer">https://www.digitalocean.com/community/tutorials/how-to-create-a-self-signed-ssl-certificate-for-apache-in-ubuntu-16-04</a></p>
  
  <p><a href="https://www.digitalocean.com/community/tutorials/how-to-set-up-multiple-ssl-certificates-on-one-ip-with-apache-on-ubuntu-12-04" rel="nofollow noreferrer">https://www.digitalocean.com/community/tutorials/how-to-set-up-multiple-ssl-certificates-on-one-ip-with-apache-on-ubuntu-12-04</a></p>
  
  <p>But right know, if I try to enter my site, it's not visible. In Firefox, throw me a error like this:</p>
  
  <pre><code>Secure Connection Failed
  
  The connection to the server was reset while the page was loading.
  
      The page you are trying to view cannot be shown because the authenticity of the received data could not be verified.
      Please contact the website owners to inform them of this problem.
  </code></pre>
  
  <p>If I tail the <code>/var/log/apache2/error.log</code> after run <code>service apache2 restart</code> I find this errors:</p>
  
  <pre><code>[ssl:error] [pid 14916] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: emailAddress=user@emial.com,CN=example.com,OU=Example,O=Example,L=Test,ST=Test,C=MX / issuer: emailAddress=user@emial.com,CN=example.com,OU=Example,O=Test,L=Test,ST=Test,C=MX / serial: 9AD648D7C9AD4A03 / notbefore: May  3 22:28:46 2017 GMT / notafter: May  3 22:28:46 2018 GMT]
  [ssl:error] [pid 14916] AH02604: Unable to configure certificate example.com:443:0 for stapling
  </code></pre>
  
  <p>And I don´t understand what is wrong. My Virtual Hosts look like this:</p>
  
  <pre><code>&lt;VirtualHost *:80&gt;
      DocumentRoot /var/inetpub/example.com
  
      ServerName example.com
      ServerAdmin user@email.com
  
      ErrorLog "${APACHE_LOG_DIR}/example-error.log"
      CustomLog "${APACHE_LOG_DIR}/example-access.log" common
  
  &lt;/VirtualHost&gt;
  
  &lt;IfModule mod_ssl.c&gt;
          &lt;VirtualHost *:443&gt;
  
          ServerAdmin user@email.com
          ServerName example.com
          DocumentRoot /var/inetpub/example.com
  
          SSLEngine on
  
          SSLCertificateFile /etc/apache2/ssl/example.com/apache-selfsigned.crt
          SSLCertificateKeyFile /etc/apache2/ssl/dexample.com/apache-selfsigned.key
  
          &lt;FilesMatch "\.(cgi|shtml|phtml|php)$"&gt;
               SSLOptions +StdEnvVars
          &lt;/FilesMatch&gt;
  
          &lt;Directory /usr/lib/cgi-bin&gt;
               SSLOptions +StdEnvVars
          &lt;/Directory&gt;
  
          BrowserMatch "MSIE [2-6]" \
                        nokeepalive ssl-unclean-shutdown \
                        downgrade-1.0 force-response-1.0
  
          &lt;/VirtualHost&gt;
  
  &lt;/IfModule&gt;
  
  &lt;Directory /var/inetpub/example.com&gt;
          AuthType Basic
          AuthName "Restricted Content"
          AuthUserFile /etc/apache2/.htpasswd
          Require valid-user
          Options Indexes FollowSymLinks MultiViews
          AllowOverride All
          Order allow,deny
          Allow from all
  #       Require all granted
  &lt;/Directory&gt;
  </code></pre>
  
  <p>The files <code>/etc/apache2/ssl/example.com/apache-selfsigned.crt</code> and <code>/etc/apache2/ssl/dexample.com/apache-selfsigned.key</code> exists. I don´t understand what is the problem... What should I check? </p>
  
  <p>Thanks. </p>
  
  <p><strong>EDIT 1:</strong></p>
  
  <p>In the virtualhost I added this line:</p>
  
  <pre><code>SSLUseStapling off
  </code></pre>
  
  <p>And the error no longer appears in error.log, but I still can´t enter the site with https in the browser. I don´t if this help, but if directly in the server I use <strong>enlinks</strong>:</p>
  
  <pre><code>elinks https://www.example.com
  </code></pre>
  
  <p>This load me the site correctly. But if I try to enter in my computer browser, I can´t see it. The url without https works fine in both. </p>