https setup ERR_CERT_AUTHORITY_INVALID #6851

Closed
opened 2025-11-02 07:08:36 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @harkirat777 on GitHub (Feb 12, 2021).

  • Gitea version (or commit ref): 1.13.0
  • Operating system: Windows server 2012 R2 64-bit

Description

I followed HTTPS setup using built-in server, copied both .pem files from gitea cert --host [HOSTNAME] command and update app.ini as follows:

SSH_DOMAIN       = [HOSTNAME]
DOMAIN           = [HOSTNAME]
HTTP_PORT        = 3000
ROOT_URL         = https://[HOSTNAME]:3000/
DISABLE_SSH      = disable
SSH_PORT         = 22
LFS_START_SERVER = true
LFS_CONTENT_PATH = D:/gitea/var/lib/gitea/data/lfs
LFS_JWT_SECRET   = D6O4wurA89r806XqB8oc9M0OC5iuLw4xxC5l0kd3CL0
OFFLINE_MODE     = false
PROTOCOL         = https
CERT_FILE        = D:\gitea\cert.pem
KEY_FILE         = D:\gitea\key.pem

I am getting Certificate Errors ERR_CERT_AUTHORITY_INVALID in browsers (server and clients) and below error in logs:
2021/02/12 13:54:26 ...c/net/http/server.go:3095:logf() [I] http: TLS handshake error from 10.X.X.X:56284: remote error: tls: unknown certificate

Can you please help me with this?

Originally created by @harkirat777 on GitHub (Feb 12, 2021). <!-- NOTE: If your issue is a security concern, please send an email to security@gitea.io instead of opening a public issue --> <!-- 1. Please speak English, this is the language all maintainers can speak and write. 2. Please ask questions or configuration/deploy problems on our Discord server (https://discord.gg/gitea) or forum (https://discourse.gitea.io). 3. Please take a moment to check that your issue doesn't already exist. 4. Make sure it's not mentioned in the FAQ (https://docs.gitea.io/en-us/faq) 5. Please give all relevant information below for bug reports, because incomplete details will be handled as an invalid report. --> - Gitea version (or commit ref): 1.13.0 - Operating system: Windows server 2012 R2 64-bit ## Description I followed [HTTPS setup using built-in server](https://docs.gitea.io/en-us/https-setup/), copied both .pem files from `gitea cert --host [HOSTNAME]` command and update app.ini as follows: ```[server] SSH_DOMAIN = [HOSTNAME] DOMAIN = [HOSTNAME] HTTP_PORT = 3000 ROOT_URL = https://[HOSTNAME]:3000/ DISABLE_SSH = disable SSH_PORT = 22 LFS_START_SERVER = true LFS_CONTENT_PATH = D:/gitea/var/lib/gitea/data/lfs LFS_JWT_SECRET = D6O4wurA89r806XqB8oc9M0OC5iuLw4xxC5l0kd3CL0 OFFLINE_MODE = false PROTOCOL = https CERT_FILE = D:\gitea\cert.pem KEY_FILE = D:\gitea\key.pem ``` I am getting Certificate Errors ERR_CERT_AUTHORITY_INVALID in browsers (server and clients) and below error in logs: `2021/02/12 13:54:26 ...c/net/http/server.go:3095:logf() [I] http: TLS handshake error from 10.X.X.X:56284: remote error: tls: unknown certificate` Can you please help me with this?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#6851