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

Let’s Encrypt integration #518

Merged
merged 1 commit into from
Mar 22, 2016
Merged

Let’s Encrypt integration #518

merged 1 commit into from
Mar 22, 2016

Conversation

swalkinshaw
Copy link
Member

Issue: #328

This PR adds Let's Encrypt integration. It will automatically create a valid, production-ready SSL certificate through LE and configure your WP site to use it.

These certifications expire every 90 days so there's a cronjob to renew them monthly.

There's a new provider option under the ssl object for each WP site. Valid options are:

  • self-signed - used in development
  • manual - when you already have a key and cert you just want copied over
  • letsencrypt - invokes automatic LE certificate flow

Testing

  • You need a publicly accessible server
  • Make sure a WP site has
ssl:
  enabled: true
  provider: letsencrypt
  • Optionally remove letsencrypt_ca from group_vars/all/main.yml if you want a real production cert. Otherwise you are using Let's Encrypt's staging server and the CA isn't verified in browsers. Note: LE production has rate limits. So don't exhaust the limit just testing unless you need a real cert.
  • Provision server as usual

Todo:

@swalkinshaw swalkinshaw changed the title [WIP] Let’s Encrypt integration Let’s Encrypt integration Mar 18, 2016
@richvida
Copy link

Great work!

@swalkinshaw
Copy link
Member Author

Updated this with ea20374 thanks to @fullyint so that the manual letsencrypt_enabled variable isn't needed anymore. We'll automatically detect if any WP sites use letsencrypt.

@swalkinshaw swalkinshaw force-pushed the lets-encrypt branch 6 times, most recently from f1354bf to ec39449 Compare March 22, 2016 21:01
swalkinshaw added a commit that referenced this pull request Mar 22, 2016
Let’s Encrypt integration
@swalkinshaw swalkinshaw merged commit 89d776b into master Mar 22, 2016
@swalkinshaw swalkinshaw deleted the lets-encrypt branch March 22, 2016 23:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants