'Phonegap ajax request error - 'certificate has expired'

My server SSL certificate has expired, so I renewed it. But when I try to access the server through my PhoneGap app (POST request), it throws a 'certificate has expired' error. It was working before, but now I am not able to access the server despite that I renewed my SSL certificate.

Update1: 1. I have reinstalled the SSL certificate and restart the server. 2. I have created a new PhoneGap project and try to access the server URL. None of them help me.

Update2: I have tried to access the server through the Phonegap app. There is no issue. So the problem is only with the localhost.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source