Magento 2 save marketplace keys

Error: SSL certificate problem: unable to get local issuer certificate

 While saving the "Public Access Key" and "Private Access Key" in Magento 2 admin panel in Magento Marketplace settings, if you are getting the above error, the possibility is the ca-bundle.crt is not installed for the curl settings in your php.ini.

To resolve the error:
1) Open your php.ini file and locate following line [curl]
2) Enter below lines (make sure you enter correct path to the ca-bundle.crt file)
curl.cainfo="PATH_TO_FILE\ca-bundle.crt"
openssl.cafile="
PATH_TO_FILE\ca-bundle.crt"
The ca-bundle.crt file can be downloaded from https://github.com/bagder/ca-bundle/blob/e9175fec5d0c4d42de24ed6d84a06d504d5e5a09/ca-bundle.crt
3) Restart web server.

Hope the above solution helped you to resolve the error SSL certificate problem: unable to get local issuer certificate in Magento 2 admin panel while saving "Public Access Key" and "Private Access Key".