Code Monkey home page Code Monkey logo

zimbra-auto-letsencrypt's Introduction

Zimbra automated Let's Encrypt certificate generation, deployment and renewal

Files to automate the deploy of letsencrypt certificates to Zimbra

You will probably find these files useful when you want to move your self-signed Zimbra certificate to the letsencrypt valid one and automate the renewal of the certificate.

  • You'll need to have Certbot isntalled on your system (needs EPEL): yum -y install certbot
  • Clone this repo in your root folder (or wherever you want): git clone https://github.com/penzoiders/zimbra-auto-letsencrypt.git
  • Set your variables by editing letsencrypt-zimbra.conf file
  • cd to the script folder and run ./zimbra-auto-letsencrypt.sh, sit back and relax while your server gets a fresh certificate and deploys (zimbra services will be restarted)
  • run ./zimbra-auto-letsencrypt.sh --help for help and for a copy-paste-friendly hint to automate renewals using crontab
  • Enjoy open-source and encryption!

NOTE: Tested on Zimbra 8.7 and CentOS 7 host (will not work for Zimbra < 8.7 since zmcertmgr is running as zimbra user, on CentOS 6 you will need to install an alternate python version to run Certbot, it works but require little extra prep).

Requirements:

  • git
  • Let's Encrypt Certbot client
  • Zimbra 8.7

Tips:

  • install prerequisites on CentOS 7:

yum install git epel-release

yum install certbot

  • install CertBot on CentOS 6:

setup python 2.7 repo

yum install -y https://centos6.iuscommunity.org/ius-release.rpm

rpm --import /etc/pki/rpm-gpg/IUS-COMMUNITY-GPG-KEY

yum -y install python27 python27-devel python27-pip python27-setuptools python27-virtualenv --enablerepo=ius

download and install Certbot and other prerequisites

yum -y install git dialog libffi-devel mod_ssl openssl-devel python-devel python-pip python-tools python-virtualenv

wget https://dl.eff.org/certbot-auto -O /usr/bin/certbot

chmod+x /usr/bin/certbot

References:

Credits:

zimbra-auto-letsencrypt's People

Contributors

123blin avatar penzoiders avatar saschadd avatar vojtechmyslivec avatar xl-reaper avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.