CURL certificate problem php ubuntu 16

PHP-curl not working with virtualmin web panel. There is certificate issue i cant use curl without tell curl to use disable ssl certificate

Disable verification for host and peer curl_setopt($cHandler, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($cHandler, CURLOPT_SSL_VERIFYPEER, true);

I have many think to do with curl i don't want to use this for my requests.

I am using cloudflare for https. i was try to enable virtualmin ssl but its always giving ssl error warning

please give me a good solution to fix this problem.

Status: 
Closed (works as designed)

Comments

Howdy -- you'd want to ensure that Virtualmin has something other than a self signed SSL certificate setup for it, which is the default.

You can do that by going into Server Configuration -> Manage SSL Certificates, and copying a valid SSL Certificate into Virtualmin.

It doesn't sound like you're seeing a Virtualmin issue there though... if you have any followup questions, since it's looks like you're using Virtualmin GPL, we'd encourage you to use the Forums for support.

We monitor the Forums, along with lots of wonderful folks in the community!

If after troubleshooting the issue in the Forums, you discover that there is a bug, by all means let us know, but it sounds like a configuration issue. Thanks!

I was switch virtualmin to sentora web panel there is no curl certificate issue.

It uses a self signed certificate by default, it should just be a matter of copying a working SSL certificate into Virtualmin.

If you have any additional questions though, you can use the Forums for that. Thanks!