]> source.dussan.org Git - gitea.git/commitdiff
Added comments documenting how to export SSL keys from .pfx
authorJames Cracknell <james.h.cracknell@gmail.com>
Thu, 27 Nov 2014 21:42:06 +0000 (14:42 -0700)
committerJames Cracknell <james.h.cracknell@gmail.com>
Thu, 27 Nov 2014 21:42:06 +0000 (14:42 -0700)
conf/app.ini

index e0620f31d6c1e7b08327fb76447b7d832ce6c756..2bd32eca604c30b09e5c0da06c97571dbacd11aa 100644 (file)
@@ -22,6 +22,11 @@ DISABLE_ROUTER_LOG = false
 ; Generate steps:
 ; $ cd path/to/gogs/custom/https
 ; $ ./gogs cert -ca=true -duration=8760h0m0s -host=myhost.example.com
+;
+; Or from a .pfx file exported from the Windows certificate store (do
+; not forget to export the private key):
+; $ openssl pkcs12 -in cert.pfx -out cert.pem -nokeys
+; $ openssl pkcs12 -in cert.pfx -out key.pem -nocerts -nodes
 CERT_FILE = custom/https/cert.pem
 KEY_FILE = custom/https/key.pem
 ; Upper level of template and static file path