#1558  How do I use onedev on the command line?
Closed
blast opened 8 months ago

Hey there o/,

I've setup OneDev on a VPS, and want to use it as a LFS hub for my company. I'm able to push and pull from our system inside an IDE, but I regularly use git on the command line. When trying this, I was hit with the error:

fatal: unable to access '<our server url/our project>': server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none

I'm never prompted to login, but I've added my SSH key to my user account inside OneDev. I've looked online and I'm not really able to find a solution to this one that doesn't seem like absolute nonsense, and nothing related to OneDev. Is there a step I've missed to allow command line git to work as expected?

Thanks!

Robin Shen commented 8 months ago

Looks that there is something wrong with the SSL certificate you configured at reverse proxy side. To narrow down issue, you may pull/push to OneDev's 6610 port directly to see if it works.

blast commented 8 months ago

Hmmm... I am able to push directly to the port. I used nginx as the reverse proxy, and literally copy/paste this nginx config and changed the server name to mine. I ran certbot --nginx on it for the ssl. This is the current version: https://hastebin.com/share/fuvacameha.bash

Robin Shen commented 8 months ago

The machine you are running git command line does not trust the letsencrypt certificate configured for nginx. Please check this thread on how to solve the issue:

https://stackoverflow.com/questions/21181231/server-certificate-verification-failed-cafile-etc-ssl-certs-ca-certificates-c

Robin Shen changed state to 'Closed' 8 months ago
Previous Value Current Value
Open
Closed
Robin Shen commented 8 months ago

Not a OneDev issue.

issue 1 of 1
Type
Question
Priority
Normal
Assignee
Labels
No labels
Issue Votes (0)
Watchers (3)
Reference
onedev/server#1558
Please wait...
Page is in error, reload to recover