Ver código fonte

TLS version 1.2

Bob Mottram 8 anos atrás
pai
commit
51c41cdbb8
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2
    2
      src/freedombone-app-matrix

+ 2
- 2
src/freedombone-app-matrix Ver arquivo

@@ -323,7 +323,7 @@ function upgrade_matrix {
323 323
     cd /etc/sydent
324 324
     pip install --upgrade --process-dependency-links .
325 325
 
326
-    sed -i 's/ssl.PROTOCOL_SSLv23/ssl.OP_ALL | ssl.OP_NO_SSLv2 | ssl.OP_NO_SSLv3/g' /usr/local/bin/register_new_matrix_user
326
+    sed -i 's/ssl.PROTOCOL_SSLv23/ssl.PROTOCOL_TLSv1_2/g' /usr/local/bin/register_new_matrix_user
327 327
 
328 328
     chown -R matrix:matrix /etc/matrix
329 329
     chown -R matrix:matrix /etc/sydent
@@ -616,7 +616,7 @@ function install_home_server {
616 616
     chown -R matrix:matrix /etc/matrix
617 617
     chown -R matrix:matrix $MATRIX_DATA_DIR
618 618
 
619
-    sed -i 's/ssl.PROTOCOL_SSLv23/ssl.OP_ALL | ssl.OP_NO_SSLv2 | ssl.OP_NO_SSLv3/g' /usr/local/bin/register_new_matrix_user
619
+    sed -i 's/ssl.PROTOCOL_SSLv23/ssl.PROTOCOL_TLSv1_2/g' /usr/local/bin/register_new_matrix_user
620 620
 
621 621
     echo '[Unit]' > /etc/systemd/system/matrix.service
622 622
     echo 'Description=Synapse Matrix homeserver' >> /etc/systemd/system/matrix.service