<!-- This file has been automatically generated. See web/README.md -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body>
<div id="compose-container" style="direction: ltr" itemscope="" itemtype="https://schema.org/EmailMessage">
<span itemprop="creator" itemscope="" itemtype="https://schema.org/Organization"><span itemprop="name" content="Outlook Mobile for iOS"></span></span>
<div>
<div style="direction: ltr;">Hi Liviu,</div>
<div><br>
</div>
<div style="direction: ltr;">Cool great news I will do that shortly on github and thanks for the response.</div>
<div><br>
</div>
<div style="direction: ltr;">So in short term would you suggest I just look to execute my php script to fire the https request for the time being from within my opensips.cfg? </div>
<div><br>
</div>
<div style="direction: ltr;">Many thanks</div>
<div><br>
</div>
<div style="direction: ltr;">Jon </div>
<div><br>
</div>
<div class="acompli_signature">Get <a href="https://aka.ms/o0ukef">Outlook for iOS</a></div>
<div class="gmail_quote">_____________________________<br>
From: Liviu Chircu <<a dir="ltr" href="mailto:liviu@opensips.org" x-apple-data-detectors="true" x-apple-data-detectors-type="link" x-apple-data-detectors-result="0">liviu@opensips.org</a>><br>
Sent: Monday, January 22, 2018 12:38 pm<br>
Subject: Re: [OpenSIPS-Users] rest_api request to HTTPS site with pem file<br>
To: <<a dir="ltr" href="mailto:users@lists.opensips.org" x-apple-data-detectors="true" x-apple-data-detectors-type="link" x-apple-data-detectors-result="1">users@lists.opensips.org</a>><br>
<br>
<br>
<meta content="text/html; charset=Windows-1252">
<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 ChircuOpenSIPS 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"><style type="text/css" style="display:none"><!--p  {margin-top:0;  margin-bottom:0}--></style>
<div id="divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Helvetica,sans-serif">
<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>_______________________________________________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>
<br>
<br>
</div>
</div>
</div>
</body>
</html>