Fatal: unable to access: SSL certificate problem: unable to get local issuer certificate #3884

Closed
opened 2025-11-02 05:29:30 -06:00 by GiteaMirror · 4 comments
Owner

Originally created by @Gooberpatrol66 on GitHub (Sep 3, 2019).

  • Gitea version (or commit ref): 1.8.3
  • Git version: 2.21.0
  • Operating system: Gentoo
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

Description

I created a new repo in gitea. I then followed the instructions in “Pushing an existing repository from the command line”.

git remote add origin https://localhost/gitea/user/project.git
git push -u origin master
fatal: unable to access 'https://localhost/gitea/user/project.git/': SSL certificate problem: unable to get local issuer certificate

SSL works without issue when I visit the web interface.

Originally created by @Gooberpatrol66 on GitHub (Sep 3, 2019). - Gitea version (or commit ref): 1.8.3 - Git version: 2.21.0 - Operating system: Gentoo - Database (use `[x]`): - [X] PostgreSQL - [ ] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [ ] No - [ ] Not relevant - Log gist: ## Description I created a new repo in gitea. I then followed the instructions in “Pushing an existing repository from the command line”. ``` git remote add origin https://localhost/gitea/user/project.git git push -u origin master fatal: unable to access 'https://localhost/gitea/user/project.git/': SSL certificate problem: unable to get local issuer certificate ``` SSL works without issue when I visit the web interface.
GiteaMirror added the type/question label 2025-11-02 05:29:30 -06:00
Author
Owner

@lafriks commented on GitHub (Sep 3, 2019):

You have to put issuer certificate in CA trust store:
https://wiki.gentoo.org/wiki/Local_certificates

@lafriks commented on GitHub (Sep 3, 2019): You have to put issuer certificate in CA trust store: https://wiki.gentoo.org/wiki/Local_certificates
Author
Owner

@Gooberpatrol66 commented on GitHub (Sep 4, 2019):

That doesn't work. Am I supposed to do this, even if I'm using letsencrypt certificates?

@Gooberpatrol66 commented on GitHub (Sep 4, 2019): That doesn't work. Am I supposed to do this, even if I'm using letsencrypt certificates?
Author
Owner

@lafriks commented on GitHub (Sep 4, 2019):

You should not be using localhost but full domain name if you have letsencrypt

@lafriks commented on GitHub (Sep 4, 2019): You should not be using `localhost` but full domain name if you have letsencrypt
Author
Owner

@Gooberpatrol66 commented on GitHub (Sep 5, 2019):

Thanks

@Gooberpatrol66 commented on GitHub (Sep 5, 2019): Thanks
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#3884