# Remplacement de certificats

root@tempstest:/home/karth# mv /var/lib/docker/volumes/matrix_coturn-data/_data/matrix-coturn-cert.pem /var/lib/docker/volumes/matrix_coturn-data/_data/matrix-coturn-cert.pem.bck
root@tempstest:/home/karth# mv /var/lib/docker/volumes/matrix_coturn-data/_data/matrix-coturn-key.pem /var/lib/docker/volumes/matrix_coturn-data/_data/matrix-coturn-key.pem.bck
root@tempstest:/home/karth# ln -s /etc/letsencrypt/live/temptest.draak.fr/fullchain.pem /var/lib/docker/volumes/matrix_coturn-data/_data/matrix-coturn-cert.pem
root@tempstest:/home/karth# ln -s /etc/letsencrypt/live/temptest.draak.fr/privkey.pem /var/lib/docker/volumes/matrix_coturn-data/_data/matrix-coturn-key.pem

root@tempstest:/home/karth# ls -al /var/lib/docker/volumes/matrix_coturn-data/_data/
total 20
drwxr-xr-x 2 root root 4096 Apr  8 13:12 .
drwxr-xr-x 3 root root 4096 Apr  7 05:13 ..
-rw-r--r-- 1 root root  228 Apr  6 17:11 coturn.conf
lrwxrwxrwx 1 root root   53 Apr  8 13:08 matrix-coturn-cert.pem -> /etc/letsencrypt/live/temptest.draak.fr/fullchain.pem
-rw-r--r-- 1 root root 1842 Apr  6 17:11 matrix-coturn-cert.pem.bck
lrwxrwxrwx 1 root root   51 Apr  8 13:12 matrix-coturn-key.pem -> /etc/letsencrypt/live/temptest.draak.fr/privkey.pem
-rw-r--r-- 1 root root 3272 Apr  6 17:11 matrix-coturn-key.pem.bck

root@tempstest:/home/karth# mv /var/lib/docker/volumes/matrix_synapse-data/_data/temptest.draak.fr.tls.crt /var/lib/docker/volumes/matrix_synapse-data/_data/temptest.draak.fr.tls.crt.bck
root@tempstest:/home/karth# ln -s /etc/letsencrypt/live/temptest.draak.fr/privkey.pem /var/lib/docker/volumes/matrix_synapse-data/_data/temptest.draak.fr.tls.key
root@tempstest:/home/karth# ln -s /etc/letsencrypt/live/temptest.draak.fr/fullchain.pem /var/lib/docker/volumes/matrix_synapse-data/_data/temptest.draak.fr.tls.crt

root@tempstest:/home/karth# ls -al /var/lib/docker/volumes/matrix_synapse-data/_data/
total 266564
drwxr-xrwx  6 root root      4096 Apr  8 13:16 .
drwxr-xr-x  3 root root      4096 Apr  7 05:13 ..
drwxr-xr-x 10  122  122      4096 Apr  7 12:04 local_content
drwxr-xr-x  9  122  122      4096 Apr  7 12:04 local_thumbnails
drwxr-xr-x 32  122  122      4096 Apr  8 02:12 remote_content
drwxr-xr-x 29  122  122      4096 Apr  8 02:12 remote_thumbnail
-rw-r--rw-  1 root root     20323 Apr  7 08:44 synapse.config.yaml
-rw-r--r--  1  122  122   1449984 Apr  7 05:14 synapse.db
-rw-r--r--  1  122  122  61712366 Apr  8 13:03 synapse.log
-rw-r--r--  1  122  122 104857499 Apr  7 22:37 synapse.log.1
-rw-r--r--  1  122  122 104857490 Apr  7 17:14 synapse.log.2
-rw-r--rw-  1 root root       817 Apr  6 15:17 temptest.draak.fr.log.config
-rw-r--rw-  1 root root        59 Apr  6 15:17 temptest.draak.fr.signing.key
lrwxrwxrwx  1 root root        53 Apr  8 13:16 temptest.draak.fr.tls.crt -> /etc/letsencrypt/live/temptest.draak.fr/fullchain.pem
-rw-r--rw-  1 root root       989 Apr  6 15:17 temptest.draak.fr.tls.crt.bck
-rw-r--rw-  1 root root       466 Apr  6 15:17 temptest.draak.fr.tls.dh
lrwxrwxrwx  1 root root        51 Apr  8 13:15 temptest.draak.fr.tls.key -> /etc/letsencrypt/live/temptest.draak.fr/privkey.pem
-rw-r--rw-  1 root root      1704 Apr  6 15:17 temptest.draak.fr.tls.key.bck
root@tempstest:/home/karth# mv /var/lib/docker/volumes/matrix_riot-data/_data/riot-web-app-key.pem /var/lib/docker/volumes/matrix_riot-data/_data/riot-web-app-key.pem.bck
root@tempstest:/home/karth# mv /var/lib/docker/volumes/matrix_riot-data/_data/riot-web-app-cert.pem /var/lib/docker/volumes/matrix_riot-data/_data/riot-web-app-cert.pem.bck
root@tempstest:/home/karth# ln -s /etc/letsencrypt/live/temptest.draak.fr/privkey.pem /var/lib/docker/volumes/matrix_riot-data/_data/riot-web-app-key.pem
root@tempstest:/home/karth# ln -s /etc/letsencrypt/live/temptest.draak.fr/fullchain.pem /var/lib/docker/volumes/matrix_riot-data/_data/riot-web-app-cert.pem

root@tempstest:/home/karth# ls -al /var/lib/docker/volumes/matrix_riot-data/_data/
total 16
drwxr-xr-x 2 root root 4096 Apr  8 13:25 .
drwxr-xr-x 3 root root 4096 Apr  7 05:13 ..
lrwxrwxrwx 1 root root   53 Apr  8 13:25 riot-web-app-cert.pem -> /etc/letsencrypt/live/temptest.draak.fr/fullchain.pem
-rw-r--r-- 1 root root 1842 Apr  6 16:49 riot-web-app-cert.pem.bck
lrwxrwxrwx 1 root root   51 Apr  8 13:24 riot-web-app-key.pem -> /etc/letsencrypt/live/temptest.draak.fr/privkey.pem
-rw-r--r-- 1 root root 3272 Apr  6 16:49 riot-web-app-key.pem.bck