mirror of
1
Fork 0

Merge pull request #674 from jcracknell/pfx-export

Added comments documenting how to export SSL keys from .pfx
This commit is contained in:
无闻 2014-11-27 16:56:55 -05:00
commit 4f8d888e66
1 changed files with 5 additions and 0 deletions

View File

@ -22,6 +22,11 @@ DISABLE_ROUTER_LOG = false
; Generate steps: ; Generate steps:
; $ cd path/to/gogs/custom/https ; $ cd path/to/gogs/custom/https
; $ ./gogs cert -ca=true -duration=8760h0m0s -host=myhost.example.com ; $ ./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 CERT_FILE = custom/https/cert.pem
KEY_FILE = custom/https/key.pem KEY_FILE = custom/https/key.pem
; Upper level of template and static file path ; Upper level of template and static file path