Shared snippet, command, script ...2014-12-11T16:02:21+01:00https://shaarlet.knah-tsaeb.org/https://shaarlet.knah-tsaeb.org/https://shaarlet.knah-tsaeb.org/Changer les permission sur les fichiers et les dossiershttps://shaarlet.knah-tsaeb.org/?aoZiGA2014-12-11T16:02:21+01:00Définie les droit sur les fichier en 644 et sur les répertoires en 755 de manière récursive.</br><code>find . -type f -exec chmod 644 {} \; && find . -type d -exec chmod 755 {} \;</code></br> via <br>(<a href="https://shaarlet.knah-tsaeb.org/?aoZiGA">Permalink</a>)Générer un certificat pour apache2https://shaarlet.knah-tsaeb.org/?JGpU3g2013-04-11T15:46:09+02:00Marche avec Ubuntu 12.04</br><code>make-ssl-cert /usr/share/ssl-cert/ssleay.cnf /etc/ssl/private/domain.com.pem<br />
OU<br />
openssl req -x509 -nodes -days 730 -newkey rsa:4096 -keyout /etc/apache2/ssl/apache.key -out /etc/apache2/ssl/apache.pem<br />
<br />
Pour Postfix<br />
openssl req -new -outform PEM -out /etc/postfix/smtpd.cert -newkey rsa:4096 -nodes -keyout /etc/postfix/smtpd.key -keyform PEM -days 730 -x509<br />
<br />
Pour Courier<br />
openssl req -out /etc/courier/imapd.pem -newkey rsa:4096 -keyout /etc/courier/imapd.pem -nodes -days 730 -x509</code></br> via <a href="http://doc.ubuntu-fr.org/tutoriel/securiser_apache2_avec_ssl#creation_du_certificat" rel="nofollow">http://doc.ubuntu-fr.org/tutoriel/securiser_apache2_avec_ssl#creation_du_certificat</a><br>(<a href="https://shaarlet.knah-tsaeb.org/?JGpU3g">Permalink</a>)