Migration failed: SSL Certificate problem: unable to get Local Issuer #2623

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

Originally created by @toni-moreno on GitHub (Dec 5, 2018).

  • Gitea version (or commit ref): fdec258
  • Git version: git inside gitea 2.18.1
  • Operating system: (working on docker oficial image gitea/gitea) alpine 3.8.1
  • 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:
2018/12/05 12:15:21 [.../api/v1/repo/repo.go:409 Migrate()] [E] MigrateRepository: Clone: exit status 128 - fatal: unable to access 'https://%3Ccredentials%3E@myserver/my-repo.git/': SSL certificate problem: unable to get local issuer certificate

2018/12/05 12:16:04 [.../api/v1/repo/repo.go:409 Migrate()] [E] MigrateRepository: Clone: exit status 128 - fatal: unable to access 'https://%3Ccredentials%3E@myserver/my-repo.git/': SSL certificate problem: unable to get local issuer certificate

Description

Can not clone from internal (self-signed ) gitlab servers and there is not option into the UI to configure the git client config like

git config http.sslVerify false

How can I allow the migration from "unsecured" SSL gitlab servers?
...

Originally created by @toni-moreno on GitHub (Dec 5, 2018). - Gitea version (or commit ref): fdec258 - Git version: git inside gitea 2.18.1 - Operating system: (working on docker oficial image gitea/gitea) alpine 3.8.1 - Database (use `[x]`): - [ ] PostgreSQL - [ ] MySQL - [ ] MSSQL - [x] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [ ] No - [x] Not relevant - Log gist: ````bash 2018/12/05 12:15:21 [.../api/v1/repo/repo.go:409 Migrate()] [E] MigrateRepository: Clone: exit status 128 - fatal: unable to access 'https://%3Ccredentials%3E@myserver/my-repo.git/': SSL certificate problem: unable to get local issuer certificate 2018/12/05 12:16:04 [.../api/v1/repo/repo.go:409 Migrate()] [E] MigrateRepository: Clone: exit status 128 - fatal: unable to access 'https://%3Ccredentials%3E@myserver/my-repo.git/': SSL certificate problem: unable to get local issuer certificate ```` ## Description Can not clone from internal (self-signed ) gitlab servers and there is not option into the UI to configure the git client config like ```` git config http.sslVerify false ```` How can I allow the migration from "unsecured" SSL gitlab servers? ...
Author
Owner

@lafriks commented on GitHub (Dec 5, 2018):

You can import ssl certificate in server certificate store and restart gitea as workaround

@lafriks commented on GitHub (Dec 5, 2018): You can import ssl certificate in server certificate store and restart gitea as workaround
Author
Owner

@lunny commented on GitHub (Dec 8, 2018):

@toni-moreno you could change git config --global http.sslVerify false on gitea server host.

@lunny commented on GitHub (Dec 8, 2018): @toni-moreno you could change `git config --global http.sslVerify false` on gitea server host.
Author
Owner

@toni-moreno commented on GitHub (Dec 12, 2018):

export GIT_SSL_NO_VERIFY=true on the docker image work for me Thank you!!

@toni-moreno commented on GitHub (Dec 12, 2018): export GIT_SSL_NO_VERIFY=true on the docker image work for me Thank you!!
Author
Owner

@giorgosn commented on GitHub (Jun 10, 2020):

git config --global http.sslVerify false

It did not worked for me. On a gitea server and a jankins server.

@giorgosn commented on GitHub (Jun 10, 2020): > git config --global http.sslVerify false It did not worked for me. On a gitea server and a jankins server.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#2623