CSWEB ON CENTOS LINUX 8

Discussions about CSEntry
Forum rules
New release: CSPro 8.0
Post Reply
fahadji
Posts: 4
Joined: August 6th, 2021, 8:09 am

CSWEB ON CENTOS LINUX 8

Post by fahadji »

Hello everyone,
I try to deploy CSWEB on Centos linux 8. The installation end properly, i means without any error.

But when I try to access CSWEB using HTTPS I can't login but when I use HTTP it works.

Here the error I am facing :

Error code: 500. Message: cURL error 60: SSL certificate problem: unable to get issuer certificate (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)

Could somebody help me.

Thanks
savy
Posts: 159
Joined: December 27th, 2012, 1:36 pm

Re: CSWEB ON CENTOS LINUX 8

Post by savy »

The issue you are seeing is not a CSWeb issue. There is a problem with your Apache/PHP configuration with SSL. Please contact your systems administrator to resolve this. The link here may help you fix your issue https://stackoverflow.com/questions/298 ... ertificate
fahadji
Posts: 4
Joined: August 6th, 2021, 8:09 am

Re: CSWEB ON CENTOS LINUX 8

Post by fahadji »

Thanks for your answer.

I try all this solution but nothing works for me.

Here my PHP.ini config
###########################################################################
[curl]
; A default value for the CURLOPT_CAINFO option. This is required to be an
; absolute path.
;curl.cainfo =
curl.cainfo = "C:\wamp64\bin\php\php7.3.21\extras\ssl\cacert.pem"
###########################################################################

And vhosts configuration
##########################################################################
<VirtualHost *:7443>
ServerName csweb2.my.lan
DocumentRoot "${INSTALL_DIR}/www/csweb"
<Directory "${INSTALL_DIR}/www/csweb">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require all granted
</Directory>
SSLEngine on
SSLCertificateFile "C:/wamp64/www/my.crt"
SSLCertificateKeyFile "C:/wamp64/www/my.key"
SSLCertificateChainFile "C:/wamp64/www/my.cer"
</VirtualHost>
##########################################################################

I already have on webserver using 443 so i change listen port to 7443
Last edited by fahadji on August 12th, 2021, 10:03 am, edited 1 time in total.
savy
Posts: 159
Joined: December 27th, 2012, 1:36 pm

Re: CSWEB ON CENTOS LINUX 8

Post by savy »

I would suggest explicitly giving the 7443 port number in your api request https://mysite:7443/api
https://serverfault.com/questions/73438 ... 443/734395
If this does not work, you can check stopping the other web application running on 443 and configuring CSWeb to run on 443.
fahadji
Posts: 4
Joined: August 6th, 2021, 8:09 am

Re: CSWEB ON CENTOS LINUX 8

Post by fahadji »

Hi savy.

I try to add the port number but still show me the same error. I try to use https native port (443) but got the same error.

Is there a way to disable php-curl check in csweb?
savy
Posts: 159
Joined: December 27th, 2012, 1:36 pm

Re: CSWEB ON CENTOS LINUX 8

Post by savy »

Unfortunately, we are unable to help you with your configuration. Please check with your systems administartor.
fahadji
Posts: 4
Joined: August 6th, 2021, 8:09 am

Re: CSWEB ON CENTOS LINUX 8

Post by fahadji »

OK. Finally i deploy using a proxy.

So csweb server is behind a proxy server that receives all request in https and forward it to csweb.

Thanks
Post Reply