<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html;
      charset=windows-1252">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p><tt>Hi Jonathan,</tt></p>
    <p><tt><br>
      </tt></p>
    <p><tt>Unfortunately, the rest_client module does not currently
        support custom SSL client certificates - you can only specify
        the "ssl_capath" in order to validate remote sites that you
        connect with. The good news is that adding this feature looks
        quite trivial [1], so we may as well throw it onto the 2.4 TODO
        list. Please open up a GitHub feature request [2] for this, and
        we'll go from there.<br>
      </tt></p>
    <p><tt><br>
      </tt></p>
    <p><tt>Best regards,</tt></p>
    <p><tt><br>
      </tt></p>
    <p><tt>[1]: <a class="moz-txt-link-freetext" href="https://curl.haxx.se/libcurl/c/simplessl.html">https://curl.haxx.se/libcurl/c/simplessl.html</a><br>
        [2]: <a class="moz-txt-link-freetext" href="https://github.com/OpenSIPS/opensips/issues">https://github.com/OpenSIPS/opensips/issues</a><br>
      </tt></p>
    <pre class="moz-signature" cols="72">Liviu Chircu
OpenSIPS Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
    <div class="moz-cite-prefix">On 22.01.2018 14:07, Jonathan Hunter
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:DB4PR02MB0336DF04E329E30B2471D20CBDEC0@DB4PR02MB0336.eurprd02.prod.outlook.com">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
      <div id="divtagdefaultwrapper"
style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;"
        dir="ltr">
        <p style="margin-top:0;margin-bottom:0">Hi guys,</p>
        <p style="margin-top:0;margin-bottom:0"><br>
        </p>
        <p style="margin-top:0;margin-bottom:0">Sorry for this question!</p>
        <p style="margin-top:0;margin-bottom:0"><br>
        </p>
        <p style="margin-top:0;margin-bottom:0">I am looking to send an
          https request using an ssl cert with the rest_client module,
          and Im not sure how to achieve this and if its possible?</p>
        <p style="margin-top:0;margin-bottom:0"><br>
        </p>
        <p style="margin-top:0;margin-bottom:0">I have been testing with
          a php script which works fine using <span>stream_context_set_option($ctx,
            'ssl', 'local_cert', $pemfilename); to associate the
            certificate but wondered instead of referencing an external
            script I can just do the same using the rest_client?</span></p>
        <p style="margin-top:0;margin-bottom:0"><span><br>
          </span></p>
        <p style="margin-top:0;margin-bottom:0"><span>I have setup SSL
            certs with the TLS module before, but not sure how to
            reference with the rest_client.</span></p>
        <p style="margin-top:0;margin-bottom:0"><span><br>
          </span></p>
        <p style="margin-top:0;margin-bottom:0"><span>Do I just
            reference the .pem file within configuration file somewhere
            and add that as a rest_append_hf ?</span></p>
        <p style="margin-top:0;margin-bottom:0"><span><br>
          </span></p>
        <p style="margin-top:0;margin-bottom:0"><span>Sorry if I have
            missed anything obvious.</span></p>
        <p style="margin-top:0;margin-bottom:0"><span><br>
          </span></p>
        <p style="margin-top:0;margin-bottom:0"><span>Many thanks</span></p>
        <p style="margin-top:0;margin-bottom:0"><span><br>
          </span></p>
        <p style="margin-top:0;margin-bottom:0"><span>Jon</span></p>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>