Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

[Instalasi ssl-cert]

jihad:~# apt-get install openssl ssl-cert

[Konfigurasi]
Generating and Import a Certificate
jihad:~# openssl req -new -x509 -days 365-nodes -out /etc/apache2/apache.pem -keyout /etc/apache2/apache.pem
Generating a 1024 bit RSA private key .........++++++ .++++++ writing new private key to '/etc/apache2/apache.pem' Enter PEM pass phrase: Verifying - Enter PEM pass phrase: ----Masukan Password.
Country Name (2 letter code) [AU]:ID State or Province Name (full name) [Some-State]:Simalungun Locality Name (eg, city) []:Raya Organization Name (eg, company) [Internet Widgits Pty Ltd]:irhabyteam Organizational Unit Name (eg, section) []: Common Name (eg, YOUR name) []:irhaby.org Email Address []:webmaster@irhaby.org

Enabling SSL Suport


jihad:~# a2enmod ssl jihad:~# /etc/init.d/apache2 restart jihad:~# nano /etc/apache2/ports.conf
<IfModule mod_ssl.c> # SSL name based virtual hosts are not yet supported, therefore no # NameVirtualHost statement here Listen 443 </IfModule>

Jihad_Irhaby

Page 1

Configuring SSL Hosts


jihad:~# nano /etc/apache2/sites-available/1_www
<VirtualHost *:443> ServerName www.irhaby.org ServerAlias irhaby.org DocumentRoot /var/www/web/ ErrorLog /var/log/apache2/eror.log CustomLog /var/log/apache2/access.log combined SSLEngine on SSLCertificateFile /etc/apache2/apache.pem </VirtualHost>

----> Tambahkan script diatas.

jihad:~# /etc/init.d/apache2 restart


Restarting web server: apache2 ... waiting Apache/2.2.9 mod_ssl/2.2.9 (Pass Phrase Dialog) Some of your private key files are encrypted for security reasons. In order to read them you have to provide the pass phrases. Server www.irhaby.org:443 (RSA) Enter pass phrase: OK: Pass Phrase Dialog successful. .

Masukan Password yang sama pada saat pembuatan certificate.

[Test]
https://irhaby.org/

Jihad_Irhaby

Page 2

Jika Muncul Peringatan seperti diatas, maka pilih saja Saya Paham.... > Tambah Pengecualian> Unduh Cert....

[FINISH]

Jihad_Irhaby

Page 3

You might also like