How to use an intermediate certificates with mojolicious
<p>Mojolicious lets me specify an ssl certificate and key when starting the app:</p>

<pre><code>&gt; ./myapp.pl prefork --listen 'https://*:8485&amp;cert=my.crt&amp;key=my.key'
</code></pre>

<p>I am trying todo this with a rapidssl certificate. 
Connecting to this service results in wget being rather unhappy:</p>

<pre><code>$ wget https://example.com:8485/
--2016-06-22 09:50:49--  https://example.com:8485/
Resolving example.com (example.com)... 1.3.2.4
Connecting to example.com (example.com)|1.3.2.4|:8485... connected.
ERROR: cannot verify example.com's certificate, issued by `/C=US/O=GeoTrust Inc./CN=RapidSSL SHA256 CA - G3':
  Unable to locally verify the issuer's authority.
To connect to example.com insecurely, use `--no-check-certificate'.
</code></pre>

<p>No big surprise, since when using rapidssl certs in other applications I have
to specify an intermediate certificate as well. So I tried to add this here too by concatenating the intermediate cert to the site certificate, but this has no influence on the outcome.</p>

<p>I also tried to put the intermediate certificate along with the root cert into a separate file and start with:</p>

<pre><code>&gt; ./myapp.pl prefork --listen 'https://*:8485&amp;cert=my.crt&amp;key=my.key&amp;ca=myca.crt'
</code></pre>

<p>but the result was equally uninspiring:</p>

<pre><code>error:14094410:SSL routines:SSL3_READ_BYTES:sslv3 alert handshake failure
</code></pre>

<p>please advise.</p>