Centos 6.x, 7.x - Create and renewal certificate SSL


#1

Hello,

My server is running on Centos 6.7 with Python 2.7 library.

You can adapt your distribution by changing /sbin /service httpd restart value.

No bash, very simple to implement.

Requirement: Installing LetsEncrypt in /opt folder:

cd /opt
git clone https://github.com/letsencrypt/letsencrypt
  cd letsencrypt
  ./letsencrypt-auto --server \

Create and renewal certificate SSL

  • Create SSL certificate:

      cd /opt/letsencrypt
      ./letsencrypt-auto certonly -a webroot --webroot-path /home/mydomain/www \
      -d mydomain.com -d www.mydomain.com \
      --server https://acme-v01.api.letsencrypt.org/directory
    

Renewal SSL certificate

/opt/letsencrypt/letsencrypt-auto --config /etc/letsencrypt/mydomain.ini -d mydomain.com -d www.mydomain.com certonly && /sbin/service httpd restart


#2

Thanks for making this :smile:

Works great!


#3

notes

deprecated so no longer needed


#4

Oh yes :smile:

It’s corrected but it’s work currently.

Thanks eva2000