I have installed magento 2 on localhost xampp. When i try to connect to the magneto market place using web setup wizard ->system configuration, ti gives me an ssl error saying that (SSL certificate problem: unable to get local issuer certificate). Can you help me resolve this, im attaching the same as well.

http://curl.haxx.se/ca/cacert.pem - copy the whole page and save it in a: "cacert.pem" file.
Then in your php.ini file insert or edit the following line: curl.cainfo = "[pathToThisFile]cacert.pem"
I suppose this is not an issue. :)
okay, thank you. i thought this was an issue with magento 2.
After adding that, it still gives me an error. (error setting certificate verify locations: CAfile: C:xamppapacheconfextracacert.pem CApath: none ) if you can give me a possible help to this, it will be great thanks a mil.
@nmallepally, give me configuration string from php.ini and location of your cacert.pem file.
Also make sure you restarded apache after changing php.ini.
here is my file
php.txt
Don't know. If you really placed there correct file with correct content and restarted apache - everything should be ok. I did exactly the same and it works.
Hi
okay .did you check the file which i sent you?. Is that correct??. I have restarted the Apache but it shows me an error. still, or is it something with file encoding??.
it worked for me thank you. Thats brilliant and thanks a mil.
can you give me any reference for fixing this errors.

@antonlazarchenko Thanks your solution worked like a charm for me :)
@antonlazarchenko
Thanks for assistance!
@mebbopakko
I'll close this issue as 'not a bug'. Please feel free to reopen if it's needed.
i am having a similar problem...i have already followed the above steps but still i am getting another issue....it says..."error setting certificate verify locations: CAfile: C:xamppapacheconfextracacert.pem CApath: none"..pls help! thanks..:)
Most helpful comment
http://curl.haxx.se/ca/cacert.pem - copy the whole page and save it in a: "cacert.pem" file.
Then in your php.ini file insert or edit the following line: curl.cainfo = "[pathToThisFile]cacert.pem"
I suppose this is not an issue. :)