Skip to content
This repository has been archived by the owner on Apr 23, 2019. It is now read-only.

A quick way to insert certificates? #139

Open
berkes opened this issue Nov 9, 2014 · 0 comments
Open

A quick way to insert certificates? #139

berkes opened this issue Nov 9, 2014 · 0 comments

Comments

@berkes
Copy link
Collaborator

berkes commented Nov 9, 2014

Right now, you need to embed the contents of the cert and the key. This works, but is kindof a PIAS with regards to line-endings and formatting.

Either your json gets formatted rather ugly, or you need to replace all line-endings with a literal \n, which is error-prone, especially when managing by hand.

Would it be an option to point to files instead? ssl_key_file and ssl_cert_file? If so, would it be smart to offer this as only option and to deprecate the option to include a certificate completely? IMHO this also offers better security.

An alternative could be to go the route of "Black Magick", famous in the Rails community: When there is a an app named example_application and the certificates directory contains a cert and key: example_application.cert example_application.key, then these are used automagically.

If there is a good idea, I'll whip up a PR.

@ghost ghost self-assigned this Nov 26, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant