Skip to content
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

Compile mongoose with SSL support #97

Merged
merged 2 commits into from
Feb 13, 2016
Merged

Compile mongoose with SSL support #97

merged 2 commits into from
Feb 13, 2016

Conversation

SuperBFG7
Copy link
Contributor

Hi notandy

I propose to compile mongoose with SSL support for people like me who are accessing ympd over the internet.
I added a WITH_SSL option to the cmake process and set the default to ON (just change to OFF if you do not want SSL enabled by default)

After that all one needs to do to is:

  1. create a certificate (key and cert in the same file), example:
    # openssl req -x509 -newkey rsa:2048 -keyout key.pem -out cert.pem -days 1000 -nodes
    # cat key.pem cert.pem > ssl.pem

  2. tell ympd to use a webport using SSL and where to find the certificate:
    # ./ympd -w "ssl://8081:/path/to/ssl.pem"

cheers!
Daniel

notandy added a commit that referenced this pull request Feb 13, 2016
Compile mongoose with SSL support
@notandy notandy merged commit 868f0f6 into notandy:master Feb 13, 2016
@SuperBFG7 SuperBFG7 deleted the ssl branch February 14, 2016 10:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants