[sr-dev] git:master:6490d95a: tls: install-cfg: do not generate tls-cert by default

Victor Seva linuxmaniac at torreviejawireless.org
Wed Aug 12 11:08:20 CEST 2015


Module: kamailio
Branch: master
Commit: 6490d95a7b07e449705373de74825dc7792d451e
URL: https://github.com/kamailio/kamailio/commit/6490d95a7b07e449705373de74825dc7792d451e

Author: Victor Seva <linuxmaniac at torreviejawireless.org>
Committer: Victor Seva <linuxmaniac at torreviejawireless.org>
Date: 2015-08-12T08:39:00+02:00

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/6490d95a7b07e449705373de74825dc7792d451e.diff
Patch: https://github.com/kamailio/kamailio/commit/6490d95a7b07e449705373de74825dc7792d451e.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>andrei at iptel.org</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>




More information about the sr-dev mailing list