New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Run Binary GOGS with HTTPS #487
Comments
Hi, I use OpenSSL too. The key file should be the decrypted private key file, and cert file is the unified cert file. And you need to specify config options describe here: http://gogs.io/docs/intro/faqs.html#how-to-setup-https%3F |
Good idea, should add a command to use Gogs generate these files. |
Added this ability in latest code of |
tried to run ./gogs cert -ca=true -duration=8760h0m0s -host=mysite.com |
Hi @badoet , from the info you provided there is nothing wrong, maybe there are some hidden special characters in your command line somehow occurred when you copy or type the command? |
HI,
I'm currently trying to do so but it seems not explained how to do it in the docs. Any clue about that ? |
Hi @KevinHivert , use |
i somehow resolved my issue a few months back, but i forgot what was the solution that i used... |
@badoet 😂 OK, this is what we called life... |
Hi
I'm trying to set up a binary executable of GOGS with the usage of self signed certificates (with custom/conf/app.ini), using OpenSSL, but I get the following message error:
[web.go:379 runWeb()] [E] Fail to start server: crypto/tls: failed to parse private key
How can I enable it?
Perhaps, you should include the script crypto/tls/generate_cert.go in the binary package as well.
The text was updated successfully, but these errors were encountered: