1. Halo Guest, pastikan Anda selalu menaati peraturan forum sebelum mengirimkan post atau thread baru.

[ASK] tolong gan, gagal install ssl di vps

Discussion in 'Hosting & Domain' started by Prameswara, Sep 1, 2018.

  1. Prameswara

    Prameswara AdSense Fan

    Joined:
    Sep 12, 2015
    Messages:
    241
    Likes Received:
    21
    Halo gan, ane mau tanya perihal install ssl. Jadi ane mau pasang ssl di vps, karena ane newbie ane carilah tutorialnya di google, ketemu domainesia_com/panduan/cara-install-ssl-di-vps/#

    ane udah ikutin tuh semua dari awal sampe akhir, tapi setelah ane cek sslnya udh terpasang atau belum (pake openssl s_client -connect webane.com:443), tulisannya refused to connect. dan ane cek web ane juga gk bisa diakses gan refused to connect. kira2 ane salah dibagian mananya ya gan? tolong bantuannya gan

    terimakasih gan sebelumnya
     
    Last edited: Sep 1, 2018
  2. abryan

    abryan Hero

    Joined:
    Jan 7, 2010
    Messages:
    508
    Likes Received:
    28
    Bos pkai nginx atau apache? Ini VPS unmanaged kan bos? SSL yang bos pkai apa?
     
  3. Prameswara

    Prameswara AdSense Fan

    Joined:
    Sep 12, 2015
    Messages:
    241
    Likes Received:
    21
    Apache unmanaged gan.
    Pake positivessl comodo namepcheap
     
  4. abryan

    abryan Hero

    Joined:
    Jan 7, 2010
    Messages:
    508
    Likes Received:
    28
    Saya kira pkai nginx dan ssl let sencrypt bos. Maaf bos saya tidak bisa membantu.
     
  5. Prameswara

    Prameswara AdSense Fan

    Joined:
    Sep 12, 2015
    Messages:
    241
    Likes Received:
    21
    Tak apa gan, terimakasih sdh mampir ke sini gan
     
  6. hardinalz

    hardinalz Super Hero

    Joined:
    Mar 8, 2010
    Messages:
    2,397
    Likes Received:
    1,424
    Location:
    /var/www/html
    Kalo di Ubuntu / Debian, buat vhost untuk domainnya

    Misal domainnya example.com

    vi /etc/apache2/sites-available/example.com-ssl.conf

    Isinya

    Code:
    <IfModule mod_ssl.c>
       <VirtualHost *:443>
           ServerName example.com
           ServerAlias www.example.com
           ServerAdmin webmaster@example.com
           DocumentRoot /var/www/html/example.com
           SSLEngine on
           SSLCertificateFile /etc/ssl/example.com/example.com.crt
           SSLCertificateKeyFile /etc/ssl/example.com/example.com.key
          ErrorLog /var/www/html/example.com/error.log
          CustomLog /var/www/html/example.com/logs/access.log combined
       </VirtualHost>
    </IfModule>
    
    Buat file untuk SSL Comodonya, misal

    mkdir -p /etc/ssl/example.com/

    vi /etc/ssl/example.com/example.com.key <-- Isi Private Key

    vi /etc/ssl/example.com/example.com.crt <-- Isi Certificate, Intermediate, sama Root

    Pastikan sdh di enable module nya

    a2enmod ssl

    Lalu aktfikan vhost nya

    a2ensite example.com-ssl

    service apache2 reload

    Selain Debian / Ubuntu, biar para mastah yang jawab
     
  7. pluto01

    pluto01 Super Hero

    Joined:
    Jun 17, 2013
    Messages:
    1,303
    Likes Received:
    70
    Location:
    Pekanbaru - Riau
    Dah clear blm mas ?
     
  8. Prameswara

    Prameswara AdSense Fan

    Joined:
    Sep 12, 2015
    Messages:
    241
    Likes Received:
    21
    sudah mas
     

Share This Page