Showing posts with label ssl. Show all posts
Showing posts with label ssl. Show all posts

Wednesday, November 17, 2021

Supaya ketika menambahkan domain langsung aktif SSL nya di cyberpanel

 1. ketika baru mengarahkan NS ke cyberpanel, dan langsung menambahkan domain ke cyberpanel, biasanya sslnya masih belum bisa..,


Solusinya..

Arahkan NS dulu, misal malam hari, paginya baru menambahkan di cyberpanel. maka hasilnya ssl nya akan aktif.


Cara ke dua:

Ketika masih belum aktif ssl nya untuk domain utama dan email. maka bisa klik tombol issue ssl. nanti bisa dilihat di dashboar, jika disalan masih "...self..." berarti masih belum berhasil ssl nya.

jika sudah seperti ini berti berhasil ssl nya:



Wednesday, September 15, 2021

Cara Memberi ssl di mail server cyberpanel Supaya Bisa di Baca di Gmail

Jika mail server tidak punya ssl, dia tidak akan bisa diakses dengann gmail. Oleh karena itu saya mencoba beberapa hal.

 

Sudah coba beberapa langkah masih gagal

1. sudah update versi terbaru cyberpanel

2. https://cyberpanel.net/docs/6-self-signed-ssl-error-on-outlook-thunderbird/

3. Mengubah secuirty menjadi low, juga masih gagal... https://github.com/usmannasir/cyberpanel/issues/434


Berikut ini cara Yang berhasil untuk membuat supaya mail sever punya ssl, sehingga bisa dibaca di gmail:

1. 


2. cek jika https://mail.domain.com sudah hijau berarti siap ditambahkan ke gmail.

Sedangkan untuk kirimnya bisanya tetap pakai port 25 unsecured. saya coba yg TLS dan SSL masih gagal. Tapi ini bisa dengan port 25





Monday, December 7, 2015

Using SSL with Webmin

http://www.webmin.com/ssl.html

Because your Webmin login and password are normally passed between your browser and the server in unencrypted form, an attacker with access to any of the networks between the browser and server can easily capture your Webmin login. To prevent this, Webmin can be configured to use SSL to encrypt all of its network traffic.
Last updated:
Sunday, 06-Dec-2015 17:55:49 UTC

Running Webmin in SSL mode

To install SSL, follow these steps :
  1. Download the OpenSSL library
    OpenSSL is a C library that provides the underlying SSL functions used by Webmin and many other programs. It is available in RPM format and as a .tar.gz file. When installing from the RPM, you may also need thedevelopment RPM in order to compile Net::SSLeay. 
    Most Linux and BSD distributions now come with OpenSSL RPMs that are installed as standard or available on the CD. If your distribution has openssl and possibily openssl-devel packages, use them instead.
  2. Install the OpenSSL library
    If you are installing from the RPM, run the commands :
      rpm -i openssl-0.x.y.rpm
      rpm -i openssl-devel-0.x.y.rpm
    If installing from the source, you will need to compile and install it with the commands :
      tar xvzf openssl-0.x.y.tar.gz
      cd openssl-0.x.y
      ./Configure     (or ./config in new OpenSSL versions)
      make
      make install
  3. Download the Net::SSLeay Perl module
    Net::SSLeay is a module that allows Perl scripts to call the functions in the OpenSSL library. It is available in .tar.gz format from the Webmin site or from the CPAN Perl module archive. 
    Alternately, you can use the Perl Modules module in Webmin to download an install Net::SSLeay from CPAN. If this works OK, the next step can be skipped. 
    Some Linux distributions come with an RPM package containing this Perl module, often named perl-Net-SSLeay. If one is available, install it instead of compiling the module manually. You may also be able to find a suitable package at rpmfind.net if your distribution doesn't include one. However, be aware that any Perl module in RPM format must have been built for the same version of Perl that you are running, or it won't work.
  4. Install the Net::SSLeay module
    To install the module, use the commands :
      tar xvzf Net_SSLeay.pm-x.yy.tar.gz
      cd Net_SSLeay.pm-x.yy
      perl Makefile.PL
      make install

    If you have installed OpenSSL from the RPM, you may need to run perl Makefile.PL /usr in order to find the OpenSSL library properly.
  5. Test the SSL install
    If the command perl -e 'use Net::SSLeay' doesn't output any error message, then the SSL support that Webmin needs is properly installed.
  6. If Webmin is not installed yet, install it
    If you install SSL support first, when Webmin's setup.shscript is run it will ask you if you want to enable SSL. Just enter y. The RPM version of Webmin will always automaticlly use SSL mode if possible.
  7. If Webmin is already installed, turn on SSL
    In the Webmin Configuration module (under the Webmin category) an icon for SSL Encryption should appear. Click on it, and change the SSL option fromDisabled to Enabled.
Warning - if you enable SSL support in Webmin, your browser must also support SSL (such as Netscape and IE). If not, you will not be able to access the Webmin server. If there is a firewall or proxy between the machine you are running your browser on and the Webmin server, check that it allows SSL requests to pass through as well.

Using STunnel to protect Webmin

Because many people have trouble installing OpenSSL and the Net::SSLeay module needed to run Webmin in SSL mode natively, I have created documentation explaining an alterative method. The STunnel program can convert SSL-encrypt any network services, such as POP3 or IMAP - or even Webmin. However, only Webmin versions 1.090 and above will work fully. To set it up, follow these steps :
  • Install STunnel
    The program is installed as standard with many Linux distributions, or can be downloaded fromwww.stunnel.org and compiled for your system.
  • Create a new tunnel
    Use Webmin's SSL Tunnels module to create a new tunnel on port 10001 called ssl-webmin that uses theConnect to remote host mode to connects tolocalhost port 10000 (assuming you are running Webmin on port 10000).
    The SSL certificate and key file option should be set toUse Webmin's cert, and all of the other options left as their defaults.
  • Activate the tunnel
    Hit the Apply Changes button in the SSL Tunnels module to activate your new tunnel.
  • Configure Webmin so that it knows about the SSL tunnel
    Added the line inetd_ssl=1 to/etc/webmin/miniserv.conf and run /etc/webmin/stop ; /etc/webmin/start.
  • Login to Webmin in SSL mode
    You should now be able to connect to https://yourhostname:10001/ and login as normal. The old URL on port 10000 will no longer work properly.

http://www.webmin.com/ssl.html

Konfigurasi OpenSSL/TLS sebagai http security (https) menggunakan Apache Web Server pada Linux CentOS 6.5

https://acenk90.wordpress.com/2014/06/13/konfigurasi-openssltls-sebagai-http-security-https-menggunakan-apache-web-server-pada-linux-centos-6-5/

Salam semua..., Baiklah pada artikel kali ini kita akan membahas mengenai cara images"Konfigurasi OpenSSL/TLS sebagai http security (https) menggunakan Apache Web Server pada Linux CentOS 6.5". Sebelum masuk kebagian konfigurasi ada baiknya kita bahas sedikit penjelasan mengenai HTTPS. HTTPS (Hypertext Transfer Protocol Secure) merupakan metode keamanan dari HTTP dan merupakan protokol komunikasi dari World Wide Web menggunakan fitur SSL (Secured Socket Layer) yang ditemukan oleh Netscape Communications Corporation untuk menyediakan autentikasi dan komunikasi tersandi dan penggunaan dalam komersil elektris keamanan transaksi website.
Demikanlah garis besar penjelasan dari HTTPS atau SSL. Selanjutnya kita masuk kebagian konfigurasi. Langkah-langkah yang harus dilakukan adalah:
  1. Installasi apache webserver dengan mengetikkan perintah :
    yum install httpd
    Melalui terminal linux CentOS server anda, seperti pada tampilan gambar di bawah ini.
    1
  2. Installkan pakckage openssl dan module ssl dengan cara mengetikkan perintah :
    yum install mod_ssl openssl
    Melalui terminal linux CentOS server anda, seperti tampilan gambar di bawah ini.
    2
  3. Cek versi openssl yang telah diinstallkan tadi dengan mengetikkan perintah :
    rpm -qa openssl
    Melalui terminal linux CentOS seperti gambar di bawah ini.
    3-1
    Pastikan versi package openssl terinstall bukan versi yang vulnerability yaitu versi OpenSSL 1.0.1f. Maka dari itu, untuk linux CentOS versi openssl yang sudah dipatch dapat dicek pada link inihttps://access.redhat.com/site/articles/904433, lalu sesuaikan dengan versi linux RHEL/CentOS yang anda gunakan.
  4. Generate private key rsa ca.key 1 MB openssl dengan cara mengetikkan perintah:
    openssl genrsa -out ca.key 1024
    Melalui terminal linux CentOS server anda, seperti pada tampilan gambar di bawah ini.
    4
  5. Buatkan ca.key dan ca.csr baru untuk opensll yang telah di installkan tadi dengan cara mengetikkan perintah:
    openssl req -new -key ca.key -out ca.csr
    Melalui terminal linux CentOS server anda dan isikan biodata untuk CSR yang akan dicreate tersebut seperti tampilan pada gambar di bawah ini.
    5
  6. Selanjutnya melalukan pengecekkan signature CSR yang di create untuk self certificate tersebut dengan cara mengetikkan perintah :
    openssl x509 -req -days 365 -in ca.csr -signkey ca.key -out ca.crt
    Melalui terminal linux CentOS server anda dan pastikan "OK", seperti tampilan gambar di bawah ini.
    6
  7. Pindahkan file ca.crt yang telah dicreate tadi ke dalam directory path untuk CSR openssl "/etc/pki/tls/certs/" dengan cara mengetikkan perintah :
    mv ca.crt /etc/pki/tls/certs/
    Melalui terminal linux CentOS server anda, seperti pada tampilan gambar di bawah ini.
    7
  8. Kemudian pindahkan juga file ca.key dan ca.csr kedalam path directory private openssl "/etc/pki/tls/private" dengan cara mengetikkan perintah :
    mv ca.key ca.csr /etc/pki/tls/private
    Melalui terminal linux CentOS server anda seperti pada tampilan gambar di bawah ini.
    8
  9. smlsmls
    9
  10. Edit file konfigurasi openssl menggunakan text editor dengan cara mengetikkan perintah :
    vim +/SSLCertificateFile /etc/httpd/conf.d/ssl.conf
    Melalui terminal linux CentOS server anda, seperti pada tampilan gambar di bawah ini.
    10
  11. Sesuaikan path directory untuk line konfigurasi SSLCertificateFile dan SSLCertificateKeyFile dan save konfigurasi tersebut seperti tampilan pada gambar di bawah ini.
    11
  12. Pada bagian bawah konfigurasi, tambahkan konfigurasi path directory SSL dan DocumentRoot pada apache web server sesuai kebutuhan anda. Kemudian save konfigurasi tersebut, untuk lebih jelasnya dapat dilihat pada tampilan gambar di bawah ini.
    12-1
  13. Buatkan path directory DocumenRoot yang telah disesuaikan dengan konfigurasi SSL/https pada bagian konfigurasi apache web server dengan mengetikkan perintah :
    mkdir acenk90.local
    Di dalam directory /var/www, untuk lebih detailnya dapat dilihat pada gambar di bawah ini.
    13
  14. Rubah kepemilikkan directory acenk90.local beserta recursive filenya menjadi milik apache, agar directory acenk90.local yang telah dicreate tadi hanya bisa di akses oleh apache dengan cara mengetikkan perintah :
    chown .apache -R acenk90.local
    Melalui terminal linux CentOS server anda, seperti tampilan gambar di bawah ini.
    14
  15. Buatkan file index.html di dalam directory acenk90.local yang akan digunakan sebagi file index testing untuk uji coba konfigurasi web https nantinya dengan cara mengetikkan perintah :
    vim index.html
    Melalui terminal linux CentOS server anda, untuk lebih jelasnya dapat dilihat pada gambar di bawah ini.16
  16. Pada file index.html yang telah dicreate tersebut isikan konfigurasi html sederhana berikut ini :
    <html>
    <center><strong>Success HTTPS Testing</strong></center>
    </html>
    Melalui terminal linux CentOS server anda, kemudian save konfigurasi tersebut seperti tampilan gambar di bawah ini.
    17
  17. Restart service apache web server dengan mengetikkan perintah :
    /etc/init.d/httpd restart
    atau
    service httpd restart
    Melalui terminal linux CentOS server anda dan pastikan service apache running seperti gambar di bawah ini.
    15
  18. Pengujian akses ssl melalui client windows dengan mengakses address "https://acenk90.local" pada kolom address bar software web browser. Maka akan tampil "Untrusted Connection" karena kita menggunakan CSR(Certificate Signing Request) untuk personal (self certificate) dan tidak komersial. Selanjutnya pilihlah "I Understand the Risks" dan clik "Add Exception", untuk lebih detailnya dapat di lihat pada tampilan gambar di bawah ini.
    18
  19. Kemudian click "view", maka akan tampil detail informasi self certificate ssl yang telah kita create pada bagian konfigurasi openssl sebelumnya dan click "Confirm Security Exception" untuk melanjutkan proses selanjutnya. Lebih detailnya dapat dilihat pada tampilan gambar di bawah ini.
    19
  20. Succes mengakses website yang SSL security yang telah kita konfigurasi tadi dengan domainhttps://acenk90.local. Untuk lebih detailnya dapat dilihat pada tampilan gambar di bawah ini.
    20

Demikianlah pembahasan artikel kali mengenai cara "Konfigurasi OpenSSL/TLS sebagai http security (https) menggunakan Apache Web Server pada Linux CentOS 6.5". Untuk konfigurasi https/ssl menggunakan web server nginx (Engine-X) akan kita bahas pada artikel selanjutnya.
Semoga artikel kali ini bermanfaat bagi kita semua.

Salam
Nofriandi

https://acenk90.wordpress.com/2014/06/13/konfigurasi-openssltls-sebagai-http-security-https-menggunakan-apache-web-server-pada-linux-centos-6-5/

INSTALL OpenSSL DAN MEMBUAT  SSL‐Certificate UNTUK MENGAKTIFKAN HTTPS DI APACHE2

http://www.opikdesign.com/kios/webhtb/WebHTB_V2.9.2.pdf

SSL untuk HTTPS akses di apache2 milik Ubuntu memang bermasalah, kita aktifkan tetap gak mau jalan, permasalahannya krn tidak ada file Certificate untuk apache2 dan belum ada OpenSSL. • install OpenSSL dan SSL‐Certificate # apt-get install openssl ssl-cert • Membuat certificate : # mkdir /etc/apache2/ssl # make-ssl-cert /usr/share/ssl-cert/ssleay.cnf /etc/apache2/ssl/apache.pem • Aktifkan modul SSL dan restart Apache2 # a2enmod ssl # /etc/init.d/apache2 force-reload • Menempelkan file certificate di virtual host # cp /etc/apache2/sites-available/default /etc/apache2/sites-available/ssl edit file /etc/apache2/sites-available/ssl, tambahkan script pada baris terakhir sebelum “” :........

http://www.opikdesign.com/kios/webhtb/WebHTB_V2.9.2.pdf

Menciptakan Sertifikat SSL dengan OpenSSL

http://www.slideshare.net/munirputra/lapres-hari-ini

Mangaktifkan Webserver dengan SSL di Centos 6

http://rizupz.blogspot.co.id/2013/09/mangaktifkan-webserver-dengan-ssl-di.html

ngin menggunakan https di web server? mudah kok. Ikuti cara berikut..

1. Install Package
Dalam penulisan ini saya menggunakan Apache web server maka komponen yang akan saya install untuk kebutuhan SSL adalah OpenSSL dan mod_ssl
[root@centos ~]# yum install mod_ssl openssl

2. Membuat Sertifikat SSL
Dengan menggunakan OpenSSL maka kita akan membuat sertifikat sendiri dengan langkah-langkah berikut:

Membuat private key
[root@centos ~]# openssl genrsa -out ca.key 1024

Membuat CSR
[root@centos ~]# openssl req -new -key ca.key -out ca.csr

Membuat Signed key sendiri
[root@centos ~]# openssl x509 -req -days 365 -in ca.csr -signkey ca.key -out ca.crt

Lalu letakkan key pada tempat yang seharusnya
[root@centos ~]# cp ca.crt /etc/pki/tls/certs
[root@centos ~]# cp ca.key /etc/pki/tls/private/ca.key
[root@centos ~]# cp ca.csr /etc/pki/tls/private/ca.csr

Kemudian buka file dengan text editor favorit mu
[root@centos ~]# nano /etc/httpd/conf.d/ssl.conf

dan ganti baris berikut
SSLCertificateFile /etc/pki/tls/certs/localhost.crt

dengan
SSLCertificateFile /etc/pki/tls/certs/ca.crt

Lalu sesuaikan juga pada dua baris berikut menjadi
SSLCertificateFile /etc/pki/tls/certs/ca.crt
SSLCertificateKeyFile /etc/pki/tls/private/ca.key

Simpan file dan kemudian restart Apache
[root@centos ~]# service httpd restart


3. Tes Webserver https
Buka web browser dan kemudian ketikkan ip server yang telah di set https. Pada contoh ini webserver saya berada di 192.168.1.109, maka https://192.168.1.109 dan akan tampil


Jika tampil pesan "The site's security certificate is not trusted!" itu tandanya sudah berjalan. Tapi kenapa tampil seperti itu?

Karena sertifikat yang digunakan oleh webserver adalah buatan sendiri dan tidak terdaftar di web browser. Sertifikat tersebut tetap dapat digunakan dan tidak akan mengganggu pc kalian. Klik saja Proceed anywayuntuk melanjutkan dan akan menyimpan sertifikat di web browser.


Yup.. webserver dengan https sudah dapat digunakan. Tapi ingat ya! kamu harus menambahkan tulisan https sebelum memasukkan ip server.

Jika ingin mengubah otomatis dari http menjadi https saat mengakses dari web browser akan saya bahas ditulisan selanjutnya.

Selamat mencoba :)

http://rizupz.blogspot.co.id/2013/09/mangaktifkan-webserver-dengan-ssl-di.html