don't try to create certificates if PyOpenSSL is not available
This commit is contained in:
parent
e8d5092f3e
commit
7d09c4d45b
|
@ -352,8 +352,8 @@ def check_and_possibly_create_paths():
|
||||||
create_path(LOCAL_XTLS_CERTS)
|
create_path(LOCAL_XTLS_CERTS)
|
||||||
cert_name = os.path.join(LOCAL_XTLS_CERTS,
|
cert_name = os.path.join(LOCAL_XTLS_CERTS,
|
||||||
jingle_xtls.SELF_SIGNED_CERTIFICATE)
|
jingle_xtls.SELF_SIGNED_CERTIFICATE)
|
||||||
if not (os.path.exists(cert_name + '.cert') and os.path.exists(
|
if gajim.HAVE_PYOPENSSL and not (os.path.exists(cert_name + '.cert') and \
|
||||||
cert_name + '.pkey')):
|
os.path.exists(cert_name + '.pkey')):
|
||||||
jingle_xtls.make_certs(cert_name, 'gajim')
|
jingle_xtls.make_certs(cert_name, 'gajim')
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue