<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to 103: TLS:  CA loading on the fly</title><link>https://sourceforge.net/p/opensips/feature-requests/103/</link><description>Recent changes to 103: TLS:  CA loading on the fly</description><atom:link href="https://sourceforge.net/p/opensips/feature-requests/103/feed.rss" rel="self"/><language>en</language><lastBuildDate>Wed, 24 Oct 2012 10:24:10 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/opensips/feature-requests/103/feed.rss" rel="self" type="application/rss+xml"/><item><title>TLS:  CA loading on the fly</title><link>https://sourceforge.net/p/opensips/feature-requests/103/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I need opensips to be able to load CA files from a predefined directory which is configurable in the routing script&lt;br /&gt;
with an option like "tls_ca_dir" (similar to "tls_ca_list").&lt;br /&gt;
I also want to be able to load them on the fly , with an MI command.&lt;/p&gt;
&lt;p&gt;I saw that SSL_CTX_load_verify_locations() is able to load the CAs from a directory , so I created&lt;br /&gt;
a small function in tls_init.c that would load the CAs from a directory at start time.&lt;br /&gt;
But how should I load the CA files with an MI command that would be called for example "load_ca_from_dir &amp;lt;filename&amp;gt;" ?&lt;br /&gt;
I do not want to restart opensips everytime a CA is added.&lt;br /&gt;
Is it possible to implement such a command easily  ?&lt;/p&gt;
&lt;p&gt;Any comment or suggestion is welcome.&lt;/p&gt;
&lt;p&gt;Thank you!&lt;br /&gt;
Dragos&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Dragos Oancea</dc:creator><pubDate>Wed, 24 Oct 2012 10:24:10 -0000</pubDate><guid>https://sourceforge.netc7e63d7647b5c9561d7dc48a7b301698d2b697c8</guid></item></channel></rss>