Page 1 of 1

certificate

Posted: December 21st, 2024, 8:37 am
by samuelhaniel
Hi all,

I tried to setup csweb using apache in xamp. In the Setup configuration details, it returned this error.

Failed to contact API server https://192.168.1.20/csweb/api/ : cURL error 60: SSL certificate problem: self-signed certificate (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://192.168.1.20/csweb/api/token

I am not planning to use the csweb server over the internet. Just want to set it up locally with https.
Is there a way around this.


Regards,
Samuel

Re: certificate

Posted: December 22nd, 2024, 1:50 am
by justinlakier
Hello,

This problem appears to be caused by the self-signed certificate. Take a look at this post (viewtopic.php?t=4550), particularly the included link to this prior post (viewtopic.php?t=2595).

Hope this helps,
Justin

Re: certificate ----Failed to contact API server

Posted: December 24th, 2024, 10:36 am
by samuelhaniel
Thanks Justing,

Correct me if i am wrong those solutions you referred me to are good for once you successfully configured the csweb server with https. And the mobile devices are having issues with the synchronization related to certificates.
I should have titled my posted with this error " Failed to contact API server.....". i have configure the csweb server with http:// successfully. When i reverted to https is when the problem arises. Not good at explaining but i hope i have made myself clear.

thanks,
Samuel

Re: certificate

Posted: December 26th, 2024, 12:50 pm
by justinlakier
Hello,

Check if you can access with https from a different computer. If not, your https is not setup right, and you may need to reconfigure. If it works, then you need to check if it works on a newer Android device. This may also have to do with some security updates not being on Android devices.

Hope this helps,
Justin

Re: certificate

Posted: January 2nd, 2025, 12:44 am
by samuelhaniel
setting up the csweb server wtih https failed. It is still complaining with "Failed to contact API server....". Since i am not going to sync data from outside our network, I will stick with the working "http"configuration of the server for now.

I appreciate your help.


Regards,
Sami