explicit sudo
This commit is contained in:
16
Readme.md
16
Readme.md
@@ -23,24 +23,24 @@ Suivre la procédure slide 97.
|
|||||||
### Certificat letsencrypt
|
### Certificat letsencrypt
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
systemctl stop httpd
|
sudo systemctl stop httpd
|
||||||
dnf install certbot -y
|
sudo dnf install certbot -y
|
||||||
certbot certonly --standalone -d CHANGEME.formation.opendoor.fr -m formation@opendoor.fr --agree-tos --test-cert
|
sudo certbot certonly --standalone -d CHANGEME.formation.opendoor.fr -m formation@opendoor.fr --agree-tos --test-cert
|
||||||
# répondre N à la question
|
# répondre N à la question
|
||||||
systemctl start httpd
|
sudo systemctl start httpd
|
||||||
```
|
```
|
||||||
⚠️ Attention, pour que le certificat (de test) soit reconnu, il faudra que le client télécharge la clé publique de la CA:
|
⚠️ Attention, pour que le certificat (de test) soit reconnu, il faudra que le client télécharge la clé publique de la CA:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
curl https://letsencrypt.org/certs/staging/letsencrypt-stg-root-x1.pem -L >> /etc/openldap/certs/ca.pem
|
curl https://letsencrypt.org/certs/staging/letsencrypt-stg-root-x1.pem -L | sudo tee -a /etc/openldap/certs/ca.pem
|
||||||
echo TLS_CACERT /etc/openldap/certs/ca.pem >> /etc/openldap/ldap.conf
|
echo TLS_CACERT /etc/openldap/certs/ca.pem | sudo tee -a /etc/openldap/ldap.conf
|
||||||
```
|
```
|
||||||
|
|
||||||
Attention également aux permissions. L'utilisateur _ldap_ doit pouvoir lire les différents fichiers:
|
Attention également aux permissions. L'utilisateur _ldap_ doit pouvoir lire les différents fichiers:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
chgrp -R ldap /etc/letsencrypt/{archive,live}
|
sudo chgrp -R ldap /etc/letsencrypt/{archive,live}
|
||||||
chmod -R g+rX /etc/letsencrypt/{archive,live}
|
sudo chmod -R g+rX /etc/letsencrypt/{archive,live}
|
||||||
```
|
```
|
||||||
|
|
||||||
## Configurer le serveur
|
## Configurer le serveur
|
||||||
|
|||||||
Reference in New Issue
Block a user