Difference between revisions of "SSL certifiate installation Debian"

From Tech
Jump to navigationJump to search
Line 18: Line 18:
 
Goddaddy now sends a verification mail, click on the link.
 
Goddaddy now sends a verification mail, click on the link.
 
Then (after some clicking) .zip file with the cert can be downloaded (choose Apache)
 
Then (after some clicking) .zip file with the cert can be downloaded (choose Apache)
  +
cd /etc/apache2/certs
  +
unzip /tmp/db.uea.org.zip
  +
ls -l
  +
total 16
  +
-rw-r--r-- 1 root root 1879 2013-04-12 08:43 db.uea.org.crt
  +
-rw-r--r-- 1 root root 1135 2013-04-12 17:28 db.uea.org.csr
  +
-rw-r--r-- 1 root root 3197 2013-04-12 08:43 gd_bundle.crt
  +
-rw------- 1 www-data www-data 1675 2013-04-12 17:20 ssl.key
  +
  +
cd /etc/apache2/sites-available
  +
vi default-ssl
  +
##->
  +
SSLCACertificateFile /etc/apache2/certs/gd_bundle.crt
  +
SSLCertificateFile /etc/apache2/certs/db.uea.org.crt
  +
SSLCertificateKeyFile /etc/apache2/certs/ssl.key
  +
##->

Revision as of 17:53, 12 April 2013

cd /etc/apache2/
mv certs certs-old
mkdir certs
cd certs
openssl genrsa -out ssl.key 2048
chmod 600 ssl.key
chown www-data:www-data ssl.key
openssl req -new -key ssl.key -out db.uea.org.csr
  #Country Name (2 letter code) [AU]:NL
  #State or Province Name (full name) [Some-State]:Zuid Holland
  #Locality Name (eg, city) []:Rotterdam
  #Organization Name (eg, company) [Internet Widgits Pty Ltd]:Universala Esperanto Asocio
  #Organizational Unit Name (eg, section) []:Centra Oficejo
  #Common Name (eg, YOUR name) []:db.uea.org
  #Email Address []:admin@co.uea.org

Give (copy-paste in text input box) the .crt file to the SSL issuing site. Goddaddy now sends a verification mail, click on the link. Then (after some clicking) .zip file with the cert can be downloaded (choose Apache)

cd /etc/apache2/certs
unzip /tmp/db.uea.org.zip
ls -l
total 16
-rw-r--r-- 1 root     root     1879 2013-04-12 08:43 db.uea.org.crt
-rw-r--r-- 1 root     root     1135 2013-04-12 17:28 db.uea.org.csr
-rw-r--r-- 1 root     root     3197 2013-04-12 08:43 gd_bundle.crt
-rw------- 1 www-data www-data 1675 2013-04-12 17:20 ssl.key
cd /etc/apache2/sites-available
vi default-ssl
##->
 SSLCACertificateFile  /etc/apache2/certs/gd_bundle.crt
 SSLCertificateFile    /etc/apache2/certs/db.uea.org.crt
 SSLCertificateKeyFile /etc/apache2/certs/ssl.key
##->