Author Topic: External API port 2304 check: FAILED  (Read 6217 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
External API port 2304 check: FAILED
« on: May 10, 2020, 01:18:51 PM »
[root@cwp scripts]# ./check_api
User API port 2302 check: OK
Oauth query check: OK
User API folder check: OK
External API port 2304 check: FAILED
CSF Firewall status check: ENABLED
TCP_IN for port 2304 set in /etc/csf/csf.conf: OK
TCP_OUT for port 2304 set in /etc/csf/csf.conf: OK

Re: External API port 2304 check: FAILED
« Reply #1 on: May 10, 2020, 04:22:00 PM »
Code: [Select]
scripts]# ./check_api
User API port 2302 check: OK
Oauth query check: OK
User API folder check: OK
External API port 2304 check: OK
External API files and htaccess : OK
CSF Firewall status check: ENABLED
TCP_IN for port 2304 set in /etc/csf/csf.conf: OK
TCP_OUT for port 2304 set in /etc/csf/csf.conf: OK

Code: [Select]
netstat -tulpn|grep "0.0.0.0:2304"|grep cwpsrv
tcp        0      0 0.0.0.0:2304            0.0.0.0:*               LISTEN      19173/cwpsrv: master

Code: [Select]
scripts]# ./cwp_version
0.9.8.971

Code: [Select]
update_cwp

Code: [Select]
restart_cwpsrv

Offline
*
Re: External API port 2304 check: FAILED
« Reply #2 on: May 10, 2020, 05:05:17 PM »
Code: [Select]
./install_api
Failed to match /etc/pki/tls/certs/hostname.bundle and /etc/pki/tls/private/hostname.key


Code: [Select]
./generate_hostname_ssl
Generating RSA private key, 2048 bit long modulus
.+++
..........................+++
e is 65537 (0x10001)
writing RSA key
Signature ok
subject=/C=HR/ST=Zagreb/O=CentOS Web Panel/L=HR/CN=localhost/OU=CentOS Web Panel/emailAddress=info@centos-webpanel.com
Getting Private key
Redirecting to /bin/systemctl restart postfix.service
Redirecting to /bin/systemctl restart dovecot.service
Redirecting to /bin/systemctl restart cwpsrv.service
Redirecting to /bin/systemctl restart httpd.service
Redirecting to /bin/systemctl restart nginx.service
Redirecting to /bin/systemctl restart pure-ftpd.service
Code: [Select]
[root@cwp scripts]# ./install_api
Redirecting to /bin/systemctl reload cwpsrv.service

Code: [Select]
[root@cwp scripts]# ./check_api
User API port 2302 check: OK
Oauth query check: OK
User API folder check: OK
External API port 2304 check: OK
External API files and htaccess : OK
CSF Firewall status check: ENABLED
TCP_IN for port 2304 set in /etc/csf/csf.conf: OK
TCP_OUT for port 2304 set in /etc/csf/csf.conf: OK


thanks for the help
« Last Edit: May 10, 2020, 05:11:07 PM by sattva »

Re: External API port 2304 check: FAILED
« Reply #3 on: May 10, 2020, 05:19:24 PM »
Regenerate hostname in Admin, to update from self-certified SSL.