Control Web Panel
Developers => CWP API => Topic started 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
-
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
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
scripts]# ./cwp_version
0.9.8.971
update_cwp
restart_cwpsrv
-
./install_api
Failed to match /etc/pki/tls/certs/hostname.bundle and /etc/pki/tls/private/hostname.key
./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
[root@cwp scripts]# ./install_api
Redirecting to /bin/systemctl reload cwpsrv.service
[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
-
Regenerate hostname in Admin, to update from self-certified SSL.