No description
Find a file
Alexandre Alouit be8bde79c1 Merge pull request #52 from exmatrikulator/none_subdomain
bugfix: alias domain produce a none.domain #48
2016-07-28 18:20:47 +02:00
src alias domain produce a none.domain #48 2016-05-02 12:04:07 +02:00
.gitignore Initial commit 2015-11-06 20:52:02 +01:00
_todo improvements 2016-02-02 08:06:08 +01:00
apache.letsencrypt.conf bugfix 2015-12-01 17:57:44 +01:00
cli.ini agree-dev-preview deprecated 2015-12-15 23:37:37 -05:00
install.php Update install.php 2016-03-30 11:15:51 +02:00
nginx.conf.patch bugfix 2015-12-01 17:57:44 +01:00
README.md Update README.md 2016-05-27 17:48:33 +02:00

ISPConfig Let's Encrypt

Don't use this plugin with ISPConfig 3.1 (or newer), this plugin is natively included.

REQUIREMENTS

Let's Encrypt installed

ISPConfig (select version in branche)

Apache or Nginx

INSTALLATION (as root)

git clone https://github.com/alexalouit/ISPConfig-letsencrypt.git
cd ISPConfig-letsencrypt
php -q install.php

After install, a new checkbox will be available in editing website, just check it.

Adjust server in /etc/letsencrypt/cli.iniif isn't ``https://acme-v01.api.letsencrypt.org/directory```

MANUAL INSTALLATION

  • make your own backup!

  • go to dir

cd ISPConfig-letsencrypt
  • create Let's Encrypt configuration
cp ./cli.ini /etc/letsencrypt/cli.ini
  • patch ISPConfig (merge all files from ./src to /usr/local/ispconfig)
rsync -av ./src/ /usr/local/ispconfig/
  • prepare apache
cp ./apache.letsencrypt.conf /etc/apache2/conf-available/letsencrypt.conf
a2enmod headers
a2enconf letsencrypt
service apache2 reload
  • prepare nginx
patch /etc/nginx/nginx.conf < ./nginx.conf.patch
service nginx reload
  • create a cron for automatic renewal:
crontab -e
30 02 * * * /root/.local/share/letsencrypt/bin/letsencrypt renew >> /var/log/ispconfig/cron.log
  • sql queries:
ALTER TABLE `web_domain` ADD `ssl_letsencrypt` enum('n','y') NOT NULL DEFAULT 'n';

TROUBLESHOOTING

update Let's Encrypt

cd /root/letsencrypt
git fetch
./letsencrypt-auto

see Let's Encrypt log

cat /var/log/letsencrypt/letsencrypt.log

see ISPConfig log

cat /var/log/ispconfig/ispconfig.log
cat /var/log/ispconfig/cron.log

remove certs

rm -r /etc/letsencrypt/archive/$domain/
rm -r /etc/letsencrypt/live/$domain/
rm -r /etc/letsencrypt/renewal/$domain.conf

re-generate cert: uncheck SSL & Let's Encrypt, save, recheck and save