]> git.koha-community.org Git - koha.git/commit
Bug 15303 Letsencrypt option for Debian package installations
authorMirko Tietgen <mirko@abunchofthings.net>
Fri, 4 Dec 2015 00:11:17 +0000 (01:11 +0100)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 29 Apr 2016 13:04:31 +0000 (13:04 +0000)
commit2f634f286266261d0139e258439b9229c2c43910
treeded1c6349d8e75ac4d309eff38daba7431d11989
parentdbba8cfeba8b1d6220096fbee98bf886712a1fcf
Bug 15303 Letsencrypt option for Debian package installations

New option koha-create --letsencrypt

- installs the letsencrypt package if needed
- creates <instance>
- generates letsencrypt certificates for <instance>
- sets up a https-only website for <instance>
- redirects http to https for <instance>

! you need to enable jessie backports to install letsencrypt: add
deb http://http.debian.net/debian jessie-backports main contrib non-free
to your /etc/apt/sources.list

! this patch uses the letsencrypt staging server
to create real certificates, apply thy "LE production server" patch

Test plan:
- build a debian package with patch applied
- use apache mod_ssl
  sudo a2enmod ssl
- make sure the machine is accessible on 80 (needed for letsencrypt) and 443 from the internet
- install koha with your new package
- Put your (existing) domain options in /etc/koha/koha-sites.conf
- use koha-create with the new options:
  sudo koha-create --create-db --letsencrypt <instance>
- if you do not have the letsencrypt package installed, you will be prompted to do that
  [
    if there is no package available, a symlink to the git checkout will work:

    on your test server, get letsencrypt via git
    git clone https://github.com/letsencrypt/letsencrypt

    create a symlink from /usr/bin/letsencrypt to letsencrypt-auto
    sudo ln -s /path/to/letsencrypt/letsencrypt-auto /usr/bin/letsencrypt
  ]

- wait until setup is finished, check that you got a working OPAC and staff client with certificates
- check that http redirects to https

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
debian/control.in
debian/docs/koha-create.xml
debian/scripts/koha-create
debian/scripts/koha-foreach
debian/scripts/koha-functions.sh
debian/scripts/koha-list
debian/templates/apache-site-https.conf.in [new file with mode: 0644]
install_misc/debian.packages