4 242
modifications
Aucun résumé des modifications |
Aucun résumé des modifications |
||
Ligne 9 : | Ligne 9 : | ||
=Installation et configuration de Collabora CODE sur la VM dédié à Collabora= | =Installation et configuration de Collabora CODE sur la VM dédié à Collabora= | ||
https://www.collaboraoffice.com/code/linux-packages/ | |||
<pre> | |||
cd /usr/share/keyrings | |||
sudo wget https://collaboraoffice.com/downloads/gpg/collaboraonline-release-keyring.gpg | |||
</pre> | |||
Créez le fichier <code>/etc/apt/sources.list.d/collaboraonline.sources</code> contenant : | |||
<pre> | |||
Types: deb | |||
URIs: https://www.collaboraoffice.com/repos/CollaboraOnline/CODE-debian11 | |||
Suites: ./ | |||
Signed-By: /usr/share/keyrings/collaboraonline-release-keyring.gpg | |||
</pre> | |||
<pre> | <pre> | ||
apt | apt update | ||
apt install coolwsd code-brand | |||
</pre> | </pre> | ||
Génération du certificat (basé sur https://github.com/CollaboraOnline/Docker-CODE/blob/master/scripts/start-libreoffice.sh) | Génération du certificat (basé sur https://github.com/CollaboraOnline/Docker-CODE/blob/master/scripts/start-libreoffice.sh) | ||
<pre> | <pre> | ||
openssl genrsa -out /etc/ | openssl genrsa -out /etc/coolwsd/root.key.pem 2048 | ||
openssl req -x509 -new -nodes -key /etc/ | openssl req -x509 -new -nodes -key /etc/coolwsd/root.key.pem -days 9131 -out /etc/coolwsd/ca-chain.cert.pem -subj "/C=DE/ST=BW/L=Stuttgart/O=Dummy Authority/CN=Dummy Authority" | ||
openssl genrsa -out /etc/ | openssl genrsa -out /etc/coolwsd/key.pem 2048 -key /etc/coolwsd/key.pem | ||
openssl req -key /etc/ | openssl req -key /etc/coolwsd/key.pem -new -sha256 -out /etc/coolwsd/localhost.csr.pem -subj "/C=DE/ST=BW/L=Stuttgart/O=Dummy Authority/CN=localhost" | ||
openssl x509 -req -in /etc/ | openssl x509 -req -in /etc/coolwsd/localhost.csr.pem -CA /etc/coolwsd/ca-chain.cert.pem -CAkey /etc/coolwsd/root.key.pem -CAcreateserial -out /etc/coolwsd/cert.pem -days 9131 | ||
</pre> | </pre> | ||
Sécurisation du certificat | Sécurisation du certificat | ||
<pre> | <pre> | ||
chgrp | chgrp cool /etc/coolwsd/key.pem | ||
chmod g+r /etc/ | chmod g+r /etc/coolwsd/key.pem | ||
</pre> | </pre> | ||