How To Create a SSL Certificate on Apache2 for Linux Mint 16


– sudo mkdir /etc/apache2/ssl

– sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/apache2/ssl/apache.key -out /etc/apache2/ssl/apache.crt

– sudo vim /etc/apache2/sites-available/default-ssl.conf

Tambahkan line dibawah Server Admin email :

ServerName example.com:443

tambahkan / pastikan baris script berikut dan sesuaikan seperti dibawah :

SSLEngine on

SSLCertificateFile /etc/apache2/ssl/apache.crt

SSLCertificateKeyFile /etc/apache2/ssl/apache.key

– sudo a2ensite default-ssl

– sudo service apache2 restart

 

akses browser dan ketik url https://localhost

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout /  Ubah )

Foto Google

You are commenting using your Google account. Logout /  Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout /  Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout /  Ubah )

Connecting to %s