[Pkg-voip-commits] [janus] 29/37: Patch configfiles to use snakeoil cert by default. Recommend ssl-cert.

Jonas Smedegaard dr at jones.dk
Mon Mar 13 19:14:34 UTC 2017


This is an automated email from the git hooks/post-receive script.

js pushed a commit to branch master
in repository janus.

commit 640aef2a86db4ea2c3377342149f92d6c582984f
Author: Jonas Smedegaard <dr at jones.dk>
Date:   Mon Mar 13 17:30:30 2017 +0100

    Patch configfiles to use snakeoil cert by default. Recommend ssl-cert.
---
 debian/control                              |  2 ++
 debian/patches/2001_use_snakeoil_cert.patch | 37 +++++++++++++++++++++++++++++
 debian/patches/README                       |  3 +++
 debian/patches/series                       |  1 +
 4 files changed, 43 insertions(+)

diff --git a/debian/control b/debian/control
index afac708..5196410 100644
--- a/debian/control
+++ b/debian/control
@@ -39,6 +39,8 @@ Depends:
  lsb-base (>= 3.0-6),
  ${misc:Depends},
  ${shlibs:Depends},
+Recommends:
+ ssl-cert,
 Suggests:
  janus-tools,
  janus-doc,
diff --git a/debian/patches/2001_use_snakeoil_cert.patch b/debian/patches/2001_use_snakeoil_cert.patch
new file mode 100644
index 0000000..e992912
--- /dev/null
+++ b/debian/patches/2001_use_snakeoil_cert.patch
@@ -0,0 +1,37 @@
+Description: Use snakeoil certificate by default
+Author: Jonas Smedegaard <dr at jones.dk>
+Last-Update: 2017-03-13
+
+--- a/conf/janus.cfg.sample.in
++++ b/conf/janus.cfg.sample.in
+@@ -62,8 +62,8 @@
+ 
+ ; Certificate and key to use for DTLS.
+ [certificates]
+-cert_pem = @certdir@/mycert.pem
+-cert_key = @certdir@/mycert.key
++cert_pem = /etc/ssl/certs/ssl-cert-snakeoil.pem
++cert_key = /etc/ssl/private/ssl-cert-snakeoil.key
+ 
+ 
+ ; Media-related stuff: you can configure whether if you want
+--- a/conf/janus.transport.http.cfg.sample.in
++++ b/conf/janus.transport.http.cfg.sample.in
+@@ -49,5 +49,5 @@
+ 
+ ; Certificate and key to use for HTTPS.
+ [certificates]
+-cert_pem = @certdir@/mycert.pem
+-cert_key = @certdir@/mycert.key
++cert_pem = /etc/ssl/certs/ssl-cert-snakeoil.pem
++cert_key = /etc/ssl/private/ssl-cert-snakeoil.key
+--- a/conf/janus.transport.websockets.cfg.sample.in
++++ b/conf/janus.transport.websockets.cfg.sample.in
+@@ -31,5 +31,5 @@
+ 
+ ; Certificate and key to use for any secure WebSocket server, if needed.
+ [certificates]
+-cert_pem = @certdir@/mycert.pem
+-cert_key = @certdir@/mycert.key
++cert_pem = /etc/ssl/certs/ssl-cert-snakeoil.pem
++cert_key = /etc/ssl/private/ssl-cert-snakeoil.key
diff --git a/debian/patches/README b/debian/patches/README
new file mode 100644
index 0000000..80c1584
--- /dev/null
+++ b/debian/patches/README
@@ -0,0 +1,3 @@
+0xxx: Grabbed from upstream development.
+1xxx: Possibly relevant for upstream adoption.
+2xxx: Only relevant for official Debian release.
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..248a583
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+2001_use_snakeoil_cert.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-voip/janus.git



More information about the Pkg-voip-commits mailing list