Renew a certificate ssl Godaddy

Renewing the godaddy certificate for apache >= Apache/2.2.22

Step 1 – Enter the system and download the certificate for apache

2

Step 2 – Save the certificate to a directory

# ls
be276fec419f8fdd.crt	gd_bundle-g2-g1.crt

Step 3 – Rename certificate bundle

mv gd_bundle-g2-g1.crt gd_bundle.crt

Step 4 – Generate the .der and then .pem

# openssl x509 -in be276fec419f8fdd.crt -out be276fec419f8fdd.der -outform DER
# openssl x509 -in be276fec419f8fdd.der -inform DER -out be276fec419f8fdd.pem -outform PEM

Step 5 – List files

ls
be276fec419f8fdd.crt	be276fec419f8fdd.der	be276fec419f8fdd.pem	gd_bundle.crt

Step 6 – Move .crt and .pem to ssl directory

# mv gd_bundle.crt be276fec419f8fdd.crt be276fec419f8fdd.pem /etc/ssl/apache2

For Apache


Step 7 – Adjust the virtualhost file

  SSLEngine On
  SSLCertificateFile /etc/ssl/apache2/be276fec419f8fdd.pem
  SSLCertificateKeyFile /etc/ssl/apache2/server.key
  SSLCertificateChainFile /etc/ssl/apache2/gd_bundle.crt

Step 8 – Restart Apache

# service apache2 restart 

For nginx

# cd /etc/ssl/apache2/
# cat be276fec419f8fdd.crt gd_bundle.crt > be276fec419f8fdd.full.crt

Step 7 – Adjust the virtualhost file

  ssl_certificate      /etc/ssl/apache2/be276fec419f8fdd.full.crt;
  ssl_certificate_key  /etc/ssl/apache2/be276fec419f8fdd.key;
  ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
  ssl_prefer_server_ciphers on;
  ssl_ciphers "EECDH+ECDSA+AESGCM EECDH+aRSA+AESGCM EECDH+ECDSA+SHA384 EECDH+ECDSA+SHA256 EECDH+aRSA+SHA384 EECDH+aRSA+SHA256 EECDH+aRSA+RC4 EECDH EDH+aRSA RC4 !aNULL !eNULL !LOW !3DES !MD5 !EXP !PSK !SRP !DSS +RC4 RC4";

Step 8 – Restart Nginx

# service nginx restart 
Renew a certificate ssl Godaddy
Tagged on:

Deixe uma resposta

O seu endereço de e-mail não será publicado. Campos obrigatórios são marcados com *

%d blogueiros gostam disto: