Closed kuzm1ch closed 5 years ago
Janus does not specifically need 1.0.x, I simply don't have access to 1.1.0 so I have no idea if there are API changes that really break it. As soon as my Fedora starts shipping it I'll have a look.
Are you sure it's not just a matter of failing to open the certificate? I don't see why the behaviour of PEM_read_X509
should have changed in 1.1.0.
We use openssl 1.1.0g
in production and works flawlessly.
Closing as not an issue then.
Yea, I can confirm that issue related to error [FATAL] [dtls.c:janus_dtls_load_keys:292] PEM_read_X509 failed
belong to problem with certs. Thanks.
Anyway, there are still some issues in README.md. Unfortunately, I have no access to create PR and therefore just write what should be fixed:
wget https://github.com/cisco/libsrtp/archive/v2.0.0.tar.gz
tar xfv v2.0.0.tar.gz
cd libsrtp-2.0.0
./configure --prefix=/usr --enable-openssl
make shared_library && sudo make install
As I described, this version couldn't be compiled on the newest distro or in case if you update your OpenSSL to the newest version ( install candidate is OpenSSL 1.1.x and version 2.0 could be compiled). Also, there is no configure option like --prefix and --libdir and it should be deleted (https://github.com/cisco/libsrtp) and should be like this:
wget https://github.com/cisco/libsrtp/archive/v2.2.0.tar.gz
tar xfv v2.2.0.tar.gz
cd libsrtp-2.2.0
./configure --enable-openssl
make shared_library && sudo make install
yum install libnice-devel
Also, need to install glib2
yum install glib2
if test -n "$PKG_CONFIG" && \
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
glib-2.0 >= \$glib_version
jansson >= \$jansson_version
\""; } >&5
lines from configure script
Appreciate for your work, but in my opinion, the doc should be as easy as possible.
Following the documentation one of the steps is to install dependencies: OpenSSL (at least v1.0.1e). sudo apt policy openssl
As release candidate is 1.1.0 version we have a problem during building libsrtp 2.0.0(the same for 1.5.x). https://github.com/cisco/libsrtp/issues/394 The version libsrtp 2.1.0 was built successfully with OpenSSL 1.1.0, but still, have a problem on starting Janus:
In any cases if Janus need Openssl 1.0.x version we should add this to the documents with the step how to build it from source or maybe janus should work fine with the newest version of mention library?