1.meng-import atau men-generate sebuah certificate,
2.enable atau mengaktifkan apache ssl support
3.mengkonfigurasi SSL options
Pertama anda silahkan men-generate dengan perintah :
#openssl req -new -x509 -days 365 -nodes -out /etc/apache2/apache2.pem -keyout/etc/apache2/apache2.pem
..............+++
.............................................................................+++
writing new private key to '/etc/apache2/apache2.pem'
-----
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [AU]:ID
State or Province Name (full name) [Some-State]:East Java
Locality Name (eg, city) []:Mojokerto
Organization Name (eg, company) [Internet Widgits Pty Ltd]:SMKN 1 Dlanggu
Organizational Unit Name (eg, section) []:
Common Name (e.g. server FQDN or YOUR name) []:fudin.net
Email Address []:fudin.sch.id
#service apache2 restart
edit file “/etc/apache2/ports.conf” periksa apakah ada tiga baris terbawah seperti gambar dibawah ini yaitu “Listen 443”
<VirtualHost *:443>
ServerName 192.168.101.3
ServerAlias 192.168.101.3
SSLEngine on
SSLCertificateFile /etc/apache2/apache2.pem
</VirtualHost>
Seperti gambar dibawah ini :
#service apache2 restart
Lalu anda coba buka di browser client dengan ip ataupun domain yaitu dengan alamat https://192.168.101.3, https://fudin.net , seperti gambar dibawah









Tidak ada komentar:
Posting Komentar