Author Topic: Secure CWP Admin Panel Port 2031  (Read 960 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Secure CWP Admin Panel Port 2031
« on: August 02, 2017, 04:04:19 PM »
Operating System : CentOS 7.3
CWP version: 0.9.8.346

I followed the tutorial http://wiki.centos-webpanel.com/hostname-ssl-with-letsencrypt
but it doesn't secure the 2031 port

The hostname domain got secured but it doesn't automatically secure the 2031 port and then redirect the 2030 port to 2031
How can I automatically secure my hostname:2031 port  with the auto ssl feature automatically?

Also how can I redirect the port 2030 to 2031

Offline
*
Re: Secure CWP Admin Panel Port 2031
« Reply #1 on: August 03, 2017, 05:05:59 AM »
I was able to secure the Panel with /usr/local/cwpsrv/conf/cwpsrv.conf
and then replacing the contents of

ssl_certificate     /etc/pki/tls/certs/hostname.crt;
ssl_certificate_key /etc/pki/tls/private/hostname.key;

With the SSL , CA and Key

But how do I redirect from port 2030 too port 2031 and to https

Thank you

Offline
*
Re: Secure CWP Admin Panel Port 2031
« Reply #2 on: August 03, 2017, 01:24:28 PM »
But how do I redirect from port 2030 too port 2031 and to https

You would need to add nginx redirect rules in file /usr/local/cwpsrv/conf/cwpsrv.conf
google that, it should be simple.
VPS & Dedicated server provider with included FREE Managed support for CWP.
http://www.studio4host.com/

*** Don't allow that your server or website is down, choose hosting provider with included expert managed support for your CWP.

Offline
*
Re: Secure CWP Admin Panel Port 2031
« Reply #3 on: October 04, 2017, 06:31:14 AM »
I was able to secure the Panel with /usr/local/cwpsrv/conf/cwpsrv.conf
and then replacing the contents of

ssl_certificate     /etc/pki/tls/certs/hostname.crt;
ssl_certificate_key /etc/pki/tls/private/hostname.key;

With the SSL , CA and Key

But how do I redirect from port 2030 too port 2031 and to https

Thank you
I already Try It But it doesn't secure the 2031 port...
Anyone Help ME?

Offline
***
Re: Secure CWP Admin Panel Port 2031
« Reply #4 on: October 09, 2017, 05:39:38 AM »
If you have a domain.com which is assigned to your IP(DNS: A Record) you can use:
For CentOS 6:
http://forum.centos-webpanel.com/ssl/certbot-installation-and-requesting-certificate-(centos-6)/
For CentOS 7:
http://forum.centos-webpanel.com/ssl/certbot-installation-and-requesting-certificate-(centos-7)/
Create SSL Certificate and Key with one of this manuals and replace in /usr/local/cwpsrv/conf/cwpsrv.conf:
Code: [Select]
ssl_certificate     /etc/pki/tls/certs/hostname.crt;
ssl_certificate_key /etc/pki/tls/private/hostname.key;
with this:
Code: [Select]
ssl_certificate     /etc/letsencrypt/live/YOUR-DOMAIN.COM/fullchain.pem;;
ssl_certificate_key /etc/letsencrypt/live/YOUR-DOMAIN.COM/privkey.pem;
Once done, don`t forget to restart cwpsrv with:
Code: [Select]
service cwpsrv restart
You are done. Now navigate to https://YOUR-DOMAIN.COM:2031 and you are supposed to have a GREEN bar and secured site.
Something like this:

Have fun. Hope it helps.
Current uptime (FreeBSD 8.1-RELEASE-p17):
UNIX is a very simple OS, but you have to be a GENIUS to understand it ...

Offline
***
Re: Secure CWP Admin Panel Port 2031
« Reply #5 on: November 21, 2017, 06:43:49 PM »
Can I use any of my domains or does it have to be an unused domain?