How to apply ssl to Gitea.
We have a Gitea Server running on the Windows platform. We have renewed our SSL certificate from GoDaddy and need information on how to apply it to Gitea.
The best method is to use a reverse proxy.
To apply an SSL certificate to your Gitea server on Windows, follow these steps:
Convert your SSL certificate to PEM format ::- if it isn’t already. You can use tools like OpenSSL for this conversion.
Edit your Gitea configuration file (usually app.ini
) and set the [server]
section with the paths to your SSL certificate and key :-
[server]
PROTOCOL = https
CERT_FILE = /path/to/your/certificate.pem
KEY_FILE = /path/to/your/private.key
Restart your Gitea server to apply the changes.
Ensure your Gitea instance has the correct permissions to access the certificate files.
Thanks
Thanks for the update.
Can you tell me where to generate CSR in the Gitea server so that I can get a private key?
Gitea is an AWS Windows Server.
Can you tell me where to generate CSR in the Gitea server so that I can get a private key?
Gitea is an AWS Windows Server.