Quantcast
Channel: fatal: unable to access 'https://URL.git': server certificate verification failed. CAfile: none CRLfile: none - Stack Overflow
Viewing all articles
Browse latest Browse all 2

fatal: unable to access 'https://URL.git': server certificate verification failed. CAfile: none CRLfile: none

$
0
0

I have a Raspberry Pi with Apache2 and multiple Virtualhosts and a config like this:

ServerSignature OffServerTokens ProdProtocols h2 h2c http/1.1RewriteEngine OnRewriteCond %{HTTPS} offRewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI}CacheQuickHandler onCacheEnable disk /CacheHeader onCacheDefaultExpire 8000CacheMaxExpire 640000CacheIgnoreNoLastMod OnExpiresActive onExpiresDefault "access plus 1 year"CacheDirLevels 5CacheDirLength 3Header set Cache-Control "max-age=31536000, public"Header unset Last-ModifiedHeader unset ETagErrorDocument 404 *ERROR_URL*SSLCertificateFile /home/pi/server/Certificates/cert.pemSSLCertificateKeyFile /home/pi/server/Certificates/privkey.pemSSLCertificateChainFile /home/pi/server/Certificates/fullchain.pem...<VirtualHost *:3000>    SSLEngine on    ServerAlias *GITEA_URL*    ErrorLog ${APACHE_LOG_DIR}/gitea_error.log    CustomLog  ${APACHE_LOG_DIR}/gitea_access.log combined    ProxyRequests Off    ProxyPreserveHost On    ProxyVia Full<Proxy *>        Require all granted</Proxy>    SSLProxyEngine On<Location "/" >        ProxyPass http://192.168.178.64:3333/        ProxyPassReverse http://192.168.178.64:3333/</Location></VirtualHost>

the gitea server is in a docker on my NAS and gitea is working for everything except

git clone *GITEA_URL*/*username*/*repo*.git

there is always this error

fatal: unable to access '*GITEA_URL*/*username*/*repo*.git': server certificate verification failed. CAfile: none CRLfile: none

if you need app.ini

APP_NAME = Zokki's GiteaRUN_MODE = prodRUN_USER = git[repository]ROOT = /data/git/repositories[repository.local]LOCAL_COPY_PATH = /data/gitea/tmp/local-repo[repository.upload]TEMP_PATH = /data/gitea/uploads[server]APP_DATA_PATH    = /data/giteaDOMAIN           = localhostSSH_DOMAIN       = localhostHTTP_PORT        = 3000ROOT_URL         = *GITEA_URL*DISABLE_SSH      = falseSSH_PORT         = 22SSH_LISTEN_PORT  = 22LFS_START_SERVER = trueLFS_JWT_SECRET   = pwOFFLINE_MODE     = false[database]PATH     = /data/gitea/gitea.dbDB_TYPE  = mysqlHOST     = 192.168.178.64:3307NAME     = giteaUSER     = giteaPASSWD   = pwLOG_SQL  = falseSCHEMA   = SSL_MODE = disableCHARSET  = utf8

How can I clone this repo with ssl and dont have to disable ssl-verify in my local git?


Viewing all articles
Browse latest Browse all 2

Latest Images

Trending Articles



Latest Images