瀏覽代碼

TLS version 1.2

Bob Mottram 8 年之前
父節點
當前提交
51c41cdbb8
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. 2
    2
      src/freedombone-app-matrix

+ 2
- 2
src/freedombone-app-matrix 查看文件

323
     cd /etc/sydent
323
     cd /etc/sydent
324
     pip install --upgrade --process-dependency-links .
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
     chown -R matrix:matrix /etc/matrix
328
     chown -R matrix:matrix /etc/matrix
329
     chown -R matrix:matrix /etc/sydent
329
     chown -R matrix:matrix /etc/sydent
616
     chown -R matrix:matrix /etc/matrix
616
     chown -R matrix:matrix /etc/matrix
617
     chown -R matrix:matrix $MATRIX_DATA_DIR
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
     echo '[Unit]' > /etc/systemd/system/matrix.service
621
     echo '[Unit]' > /etc/systemd/system/matrix.service
622
     echo 'Description=Synapse Matrix homeserver' >> /etc/systemd/system/matrix.service
622
     echo 'Description=Synapse Matrix homeserver' >> /etc/systemd/system/matrix.service