Module: kamailio
Branch: master
Commit: 3163c43b7bc2e1ca29d2b7e0772091a425ed7777
URL: 
https://github.com/kamailio/kamailio/commit/3163c43b7bc2e1ca29d2b7e0772091a425ed7777

Author: Victor Seva <[email protected]>
Committer: Victor Seva <[email protected]>
Date: 2015-08-12T11:08:15+02:00

Merge pull request #282 from kamailio/vseva/tls_no_install_certs

tls: install-cfg: do not generate tls-cert by default

---

Modified: modules/tls/Makefile
Modified: modules/tls/doc/history.xml

---

Diff:  
https://github.com/kamailio/kamailio/commit/3163c43b7bc2e1ca29d2b7e0772091a425ed7777.diff
Patch: 
https://github.com/kamailio/kamailio/commit/3163c43b7bc2e1ca29d2b7e0772091a425ed7777.patch

---

diff --git a/modules/tls/Makefile b/modules/tls/Makefile
index 167863d..c6969c1 100644
--- a/modules/tls/Makefile
+++ b/modules/tls/Makefile
@@ -40,7 +40,10 @@ include ../../Makefile.modules
 install-tls-cert: $(cfg_prefix)/$(cfg_dir)
        MAIN_NAME=$(MAIN_NAME) ./$(SCR_NAME)_cert.sh -d $(cfg_prefix)/$(cfg_dir)
 
-install-cfg:  install-tls-cert
+install-cfg:
+       @if ! [ -d $(cfg_prefix)/$(cfg_dir) ]; then \
+               mkdir -p "$(cfg_prefix)/$(cfg_dir)" ; \
+       fi
        @$(call try_err, $(INSTALL_TOUCH) \
                        "$(cfg_prefix)/$(cfg_dir)tls.cfg.sample" )
        @sed -e "s#\/usr/local/etc/kamailio/#$(cfg_target)#g" \
diff --git a/modules/tls/doc/history.xml b/modules/tls/doc/history.xml
index 627fe55..418e04b 100644
--- a/modules/tls/doc/history.xml
+++ b/modules/tls/doc/history.xml
@@ -29,5 +29,10 @@
                        The code is currently maintained by Andrei 
Pelinescu-Onciul
                        <email>[email protected]</email>.
                </para>
+               <para>
+                       Install does not generate self-signed certificates by 
default
+                       anymore. In order to generate them now you should do
+                       "make install-tls-cert"
+               </para>
        </section>
 </section>


_______________________________________________
sr-dev mailing list
[email protected]
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to