Advertisement: Linux VPS for $4/month - based on OpenVZ, credit card accepted, automatic setup.
+ Post New Thread
Results 1 to 2 of 2

Thread: zPanel, how to install self-signed SSL certifficate to allow HTTPS access

  1. #1
    Fli
    Fli is offline
    Administrator Fli's Avatar
    Join Date
    Mar 2013
    Posts
    2,474

    zPanel, how to install self-signed SSL certifficate to allow HTTPS access



    Im accessing zPanel simply via my server IP. I wanted to submit my login credentials via secure socket layer (encrypted)

    https://myzpanelserverip/

    This is what worked in my case (i have centos/redhat):

    # yum install openssl mod_ssl -y
    (it can update Apache automatically!. If have Debian based Linux, then use apt-get instead of yum)

    # openssl req -x509 -nodes -days 365 -newkey rsa:2048 -out /etc/pki/tls/certs/zpanel.crt -keyout /etc/pki/tls/certs/zpanel.key
    (generate self signed certifficate, hit Enter keys)

    # echo "SSLCertificateFile /etc/pki/tls/certs/zpanel.crt" >> /etc/httpd/conf.d/ssl.conf;echo "SSLCertificateKeyFile /etc/pki/tls/certs/zpanel.key" >> /etc/httpd/conf.d/ssl.conf

    # service httpd restart
    (if have Debian based Linux, then use: service apache2 restart)

    Then login your zPanel via http, go to "Admin" top menu. Then "Module Admin", then "Apache Config", then into the "Global ZPanel Entry", field, add:

    Redirect Permanent / https://YOURZPANELSERVERIP/

    It started working for me

  2. #2
    Junior Member imort's Avatar
    Join Date
    Apr 2016
    Posts
    15


    Is this useful / helpfull? Yes | No
    Quote Originally Posted by admin View Post
    Im accessing zPanel simply via my server IP. I wanted to submit my login credentials via secure socket layer (encrypted)
    https://myzpanelserverip/
    Some browsers and especially the mobile devices will have the security error with self-signed SSL certificate, so it's probably a good idea to have domain name anyway.
    And there is a great opportunity to have a free valid SSL certificate for your domain: https://letsencrypt.org/
    They have some limits but it's free anyway and will continue to be free

+ Post New Thread

Similar Threads

  1. Replies: 0
    Last Post: 09-26-2016, 09:14 PM
  2. Replies: 0
    Last Post: 09-26-2016, 06:24 PM
  3. Replies: 0
    Last Post: 07-30-2014, 06:16 PM
  4. Replies: 0
    Last Post: 06-27-2014, 02:58 PM
  5. Replies: 0
    Last Post: 10-01-2013, 11:31 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
 Protected by : ZB BLOCK  &  StopForumSpam