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

Feature Request: New SSL provider CloudFlare Origin CA #868

Closed
5 tasks
tangrufus opened this issue Aug 16, 2017 · 4 comments
Closed
5 tasks

Feature Request: New SSL provider CloudFlare Origin CA #868

tangrufus opened this issue Aug 16, 2017 · 4 comments

Comments

@tangrufus
Copy link
Collaborator

tangrufus commented Aug 16, 2017

Generate a cert by cli for example.com, *.example.com, *.another.com when this example config is given:

wordpress_sites:
  example.com:
    site_hosts:
      - canonical: example.com
        redirects:
          - www.example.com
          - ww2.example.com
          - www.another.com
    ssl:
      enabled: true
      provider: cloudflare

It should:

  • add cloudflare package repository https://pkg.cloudflare.com/
  • root@server# apt-get install cfca
  • calculate a list of hostnames, e.g.: example.com, *.example.com, *.another.com
  • root@server# CF_API_KEY=XXXXX cfca getcert -hostnames example.com,*.example.com,*.another.com -key-out /etc/nginx/ssl/cloudflare.key -certificate-out /etc/nginx/ssl/cloudflare.pem -overwrite
  • Update /etc/nginx/nginx.conf template

See:

@partounian
Copy link
Contributor

partounian commented Aug 17, 2017

This is great! You are on a roll @tangrufus , this would be so useful for people like me who hopped on CloudFlare and realized they needed to add SSL for one more domain. I had to wait to propagate back to the original DNS, run commands, make sure everything is okay, then back over to CloudFlare. This might be a stupid question, but what happens if you move off CloudFlare, does your cert expire?

EDIT: You should probably not make issues/feature requests if you will be creating PRs though, don't want to add clutter. 👍

@tangrufus
Copy link
Collaborator Author

what happens if you move off CloudFlare, does your cert expire?

Expires in 15 years.
However, this cert is self-signed. When you move out of Cloudflare, you don't get green padlocks.

@partounian
Copy link
Contributor

I see, looking over it again at the end it says.

When pausing CloudFlare or gray-clouding individual zones, be aware that you and your visitors may receive errors in their browsers until you orange-cloud (reverse proxy) them again.

@tangrufus
Copy link
Collaborator Author

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 a pull request may close this issue.

2 participants