Konfigurasi HTTPS Di Debian Server

Selamat siang, masing bertemu dengan penulis. Jangan bosen ok. Pada kesempatan kali ini, kita akan belajar mengenai konfigurasi HTTPS di Web Server Apache2.
Langsung aja, selamat membaca.

Pertama, kita harus me-regenerate certificate authetication
root@debian-server:/home/miss# openssl req -new -x509 -days 365 -nodes -out /etc/apache2/apache2.pem -keyout /etc/apache2/apache2.pem

Isi sesuai petunjuk.

https2

Setelah itu aktifkan ssl nya dengan perintah :
root@debian-server:/home/miss# a2enmod ssl

https1

Setelah itu, sesuai petunjuk kita restart service apache2 nya.
root@debian-server:/home/miss# /etc/init.d/apache2 restart

Lalu, cek apakah port HTTPS atau 443 sudah ada. Cek di file /etc/apache2/ports.conf
root@debian-server:/home/miss# nano /etc/apache2/ports.conf

https5.png

Selanjutnya, edit file 000-default.conf di directory /etc/apache2/sites-available
root@debian-server:/home/miss# nano /etc/apache2/sites-available/000-default.conf
Tambahkan baris :

<VirtualHost *:443>
ServerName sakti.smk
ServerAlias http://www.sakti.smk
SSLEngine on
SSLCertificateFile /etc/apache2/apache2.pem
</VirtualHost>

Selanjutnya, kita restart lagi service apache2 nya.

PENGECEKAN
Kita buka Web Browser di sisi client dan ketik https://www.sakti.smk

https9

Klik Advanced -> Proceed To http://www.sakti.smk (unsafe)

https10.png

Hasilnya :

https11.png

 

Sekian dari Penulis, Jika ada salah kata maap2 ya.

Wassalamulaikum 🙂

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.