SSL

Cara Konfigurasi SSL Wildcard DIGICERT

Estimated reading: 3 minutes 401 views

Berikut adalah cara Konfigurasi SSL DIGICERT Apache Ubuntu 20.04

Step 1. Install Web server ( Apache2 )

Install terlebih dahulu web server, Anda dapat menggunakan apache atau nginx. Disini menggunakan apache server sebagai web server, dapat menggunakan command dibawah ini.

root@linuxjomblo:~# apt-get install apache2 -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
apache2 is already the newest version (2.4.41-4ubuntu3.1).
0 upgraded, 0 newly installed, 0 to remove and 28 not upgraded.
root@linuxjomblo:~#

Step 2. Restart service Apache2

root@linuxjomblo:~# systemctl restart apache2
root@linuxjomblo:~# systemctl status apache2
● apache2.service - The Apache HTTP Server
Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
Active: active (running) since Wed 2021-03-03 16:29:21 UTC; 5s ago
Docs: https://httpd.apache.org/docs/2.4/
Process: 609602 ExecStart=/usr/sbin/apachectl start (code=exited, status=0/SUCCESS)
Main PID: 609619 (apache2)
Tasks: 6 (limit: 1059)
Memory: 12.8M
CGroup: /system.slice/apache2.service
├─609619 /usr/sbin/apache2 -k start
├─609620 /usr/sbin/apache2 -k start
├─609621 /usr/sbin/apache2 -k start
├─609622 /usr/sbin/apache2 -k start
├─609623 /usr/sbin/apache2 -k start
└─609624 /usr/sbin/apache2 -k start

Mar 03 16:29:20 linuxjomblo systemd[1]: Starting The Apache HTTP Server…
Mar 03 16:29:21 linuxjomblo systemd[1]: Started The Apache HTTP Server.

Step 3. Download File Certificate SSL Digicert

Pastikan bahwa SSL Digicert sudah siap dan sudah bisa digunakan. Jika belum active, silakan dapat menghubungi sales Kami di [email protected] / [email protected]
Jika sudah ada file SSL untuk domain tersebut, silakan donwload file tersebut, dan upload ke server menggunakan FTP atau WinSCP.

Step 4. Buat folder SSL

Buat folder untuk tempat penyimpanan SSL tersebut, berikut commandnya

root@linuxjomblo:~# mkdir -p /etc/apache2/ssl/

Silahkan pindahkan 2 File SSL ke folder ssl yang sudah di tentukan. Domain.crt dan domain.key
Note :
– Domain.key merupakan hasil dari generate openssl waktu order ssl.
– Domain.crt merupakan ssl yang digunakan untuk domain tersebut.

Step 5. Buat Vhost ( Virtual Host )

Sekarang buat virtual host terlebih dahulu di file /etc/apache2/site-available/domain-ssl.conf

root@linuxjomblo:~# nano /etc/apache2/sites-available/linuxjomblo-ssl.conf

berikut isi file ya

ServerAdmin [email protected]
ServerName linuxjomblo.com
ServerAlias www.linuxjomblo.com
DocumentRoot /var/www/linuxjomblo
SSLEngine on
SSLCertificateFile /etc/apache2/ssl/domain.crt
SSLCertificateKeyFile /etc/apache2/ssl/domain.key

Step 6. Aktifkan Modul SSL untuk apache2

root@linuxjomblo:~# a2enmod ssl

Step 7. Retsart layanan apache2

root@linuxjomblo:~# systemctl restart apache2
root@linuxjomblo:~# systemctl status apache2
apache2.service - The Apache HTTP Server
Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
Active: active (running) since Wed 2021-03-03 16:29:21 UTC; 5s ago
Docs: https://httpd.apache.org/docs/2.4/
Process: 609602 ExecStart=/usr/sbin/apachectl start (code=exited, status=0/SUCCESS)
Main PID: 609619 (apache2)
Tasks: 6 (limit: 1059)
Memory: 12.8M
CGroup: /system.slice/apache2.service
├─609619 /usr/sbin/apache2 -k start
├─609620 /usr/sbin/apache2 -k start
├─609621 /usr/sbin/apache2 -k start
├─609622 /usr/sbin/apache2 -k start
├─609623 /usr/sbin/apache2 -k start
└─609624 /usr/sbin/apache2 -k start

Mar 03 16:29:20 linuxjomblo systemd[1]: Starting The Apache HTTP Server…
Mar 03 16:29:21 linuxjomblo systemd[1]: Started The Apache HTTP Server.

Step 8. Melakukan pengetesan terhadap ssl di website

Share this Doc

Cara Konfigurasi SSL Wildcard DIGICERT

Or copy link

CONTENTS