I created a new repo in gitea. I then followed the instructions in “Pushing an existing repository from the command line”.
git remote add origin https://localhost/gitea/user/project.git
git push -u origin master
fatal: unable to access 'https://localhost/gitea/user/project.git/': SSL certificate problem: unable to get local issuer certificate
SSL works without issue when I visit the web interface.