Control Web Panel

Developers => CWP API => Topic started by: sattva on May 10, 2020, 01:18:51 PM

Title: External API port 2304 check: FAILED
Post by: sattva 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
Title: Re: External API port 2304 check: FAILED
Post by: cinique 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
Title: Re: External API port 2304 check: FAILED
Post by: sattva 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
Title: Re: External API port 2304 check: FAILED
Post by: cinique on May 10, 2020, 05:19:24 PM
Regenerate hostname in Admin, to update from self-certified SSL.