We recently had the problem that we could work on Windows 11 seamlessly with Visual Studio 2022 and interact with our gitea git endpoint without any problems.

However on our POP!OS based other workstations we were unable to get the repository cloned:

Clone to ‘setFileCreationDateToNow’ …
fatal: could not access ‘https://www.jr-it-services.de:3000/johannes/setFileCreationDateToNow.git/’ server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none

This indicates a certification validation issue. When browsing the web, there are a couple of solutions that suggest fixing in like this:

git config –global http.sslverify false

Which would completely disable ssl verification for the local machine. Please do NOT do that. Instead we did the following:

sudo openssl s_client -showcerts -servername www.jr-it-services.de:3000 -connect www.jr-it-services.de:3000 /dev/null | sed -n -e ‘/BEGIN\ CERTIFICATE/,/END\ CERTIFICATE/ p’ > jritservices.pem

sudo cat jritservices.pem | sudo tee -a /etc/ssl/certs/ca-certificates.crt

The only things that need to be changed are the web addresses (www.jr-it-services and the like) and replace it with your site.

Immediately after the command we were able to safely clone our repo without any issue:

git clone https://www.jr-it-services.de:3000/johannes/setFileCreationDateToNow.git
Klone nach ‘setFileCreationDateToNow’ …
remote: Counting objects: 16, done.
remote: Compressing objects: 100% (15/15), done.
remote: Total 16 (delta 3), reused 0 (delta 0)
Entpacke Objekte: 100% (16/16), 5.66 KiB | 1.89 MiB/s, fertig.

Sorry for the german stuff in between, but you get the idea…

Connect to self hosted gitea git repository on POP!OS 22.04

Johannes Rest


.NET Architekt und Entwickler


Beitragsnavigation


Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert