Tag Archives: git submodule add Error

git submodule add Error: SSL certificate problem unable to get local issuer certificate

Errors encountered when using hugo and installing themesSSL certificate problem: unable to get local issuer certificate

(base) PS E:\vscodeProject\chz8bit.github.io\quickstart> git submodule add https://github.com/nanxiaobei/hugo-paper themes/paper
Cloning into 'E:/vscodeProject/chz8bit.github.io/quickstart/themes/paper'...
fatal: unable to access 'https://github.com/nanxiaobei/hugo-paper/': SSL certificate problem: unable to get local issuer certificate
fatal: clone of 'https://github.com/nanxiaobei/hugo-paper' into submodule path 'E:/vscodeProject/chz8bit.github.io/quickstart/themes/paper' failed

 

Solved the problem with the following link
How do I configure Git to trust certificates from the Windows Certificate Store? – Stack Overflow
Cant clone from GitHub : SSL certificate problem: unable to get local issuer certificate Issue #9293 desktop/desktop
Personally, I think it is mainly this line of code, and there is a corresponding explanation https://github.com/desktop/desktop/issues/9293#issuecomment-607357181

git config --global http.sslBackend schannel

The last run was successful

(base) PS E:\vscodeProject\chz8bit.github.io\quickstart> git submodule add https://github.com/nanxiaobei/hugo-paper themes/paper
Cloning into 'E:/vscodeProject/chz8bit.github.io/quickstart/themes/paper'...
remote: Enumerating objects: 1594, done.
remote: Counting objects: 100% (731/731), done.
remote: Compressing objects: 100% (402/402), done.
remote: Total 1594 (delta 361), reused 404 (delta 327), pack-reused 863 eceiving objects: 100% (1594/1594), 5.46 MiB | 445.00 KiB/s
Receiving objects: 100% (1594/1594), 5.50 MiB | 368.00 KiB/s, done.
Resolving deltas: 100% (750/750), done.
starting fsmonitor-daemon in 'E:/vscodeProject/chz8bit.github.io/quickstart/themes/paper'