SSL Certificate Error even though I configure to ignore SSL verification

Hi All,

I am loving PlatformIO and have been developing using the IDE at home with no problems. My project has been set up to pull libraries I create directly from github and this works perfectly!

I am now trying to use PIO at work where I have created some custom libraries which we host on our internal Atlassian repositories. Strangely I cannot get this to work and receive an error when trying to pull the internal dependencies (if I point to github its fine):

Cloning into ‘C:\Users\xxx.platformio.cache\tmp\pkg-installing-scobu9lr’…
fatal: unable to access ‘https://xxx/micrortos_module_template.git/’: SSL certificate problem: unable to get local issuer certificate
VCSBaseException: VCS: Could not process command [‘git’, ‘clone’, ‘–recursive’, ‘–depth’, ‘1’, ‘https://xxx/micrortos_module_template.git’, ‘C:\Users\xxx\.platformio\.cache\tmp\pkg-installing-scobu9lr’]:

It complains about being unable to get local issuer certificate however I have configured VSCode to ignore SSL verification in the settings.json:

{
“workbench.iconTheme”: “vscode-icons”,
“window.zoomLevel”: -1,
“http.proxyStrictSSL”: false,
“http.systemCertificates”: false
}

I can work around this by managing the repositories and pulling them directly to the “lib” folder and forgo having PlatformIO do any pulls from the internal repos, however this really removes one of the best bits about PlatformIO which is project automation.

Hopefully someone here has some experience in getting this to work. I have seen some posts related to SSL verification however following each of their threads instructions has not improved the error.

Cheers!

What is your OS? This issue is not linked with PlatformIO. Your local git client uses outdated certificates. For Ubuntu OS, try sudo update-ca-certificates.

Hi,

That makes sense, I use Windows and Git for Windows so will investigate the settings there.

Interestingly it works fine through bash and through tortoise git (client UI) and never struggles with the SSL verification or certificates. It only seems to be PlatformIO when it tries to perform a git operation on our internal repos.

I will have a play around with my main git config and see if I can get the error to change.

Cheers

I just want to make sure, will changing the system/global gitconfig affect PlatformIO?

When I clone the same repo I am struggling with through bash terminal I get the following output:

$ git clone https://internal_address/messageparser.git
Cloning into ‘messageparser’…
git: ‘credential-manager’ is not a git command. See ‘git --help’.

The most similar command is
credential-manager-core
remote: Enumerating objects: 12, done.
remote: Counting objects: 100% (12/12), done.
remote: Compressing objects: 100% (9/9), done.
remote: Total 12 (delta 1), reused 0 (delta 0)
Receiving objects: 100% (12/12), done.
Resolving deltas: 100% (1/1), done.

It doesn’t seem to be showing any errors so not sure how I can reconfigure my git configuration to make PIO work.

Having spent some time investigating this I can confirm this has nothing to do with PlatformIO but instead it was competing git configurations causing issues for VSCode. Having multiple types of emulators (each applying their own gitconfig) made it impossible to understand where VSCode was getting its credentials from.

Uninstalling and reinstalling the whole git toolchain resolved this issue.