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

[WIP] let's encrypt heroku integration #360

Closed
phoet opened this issue Dec 28, 2017 · 13 comments
Closed

[WIP] let's encrypt heroku integration #360

phoet opened this issue Dec 28, 2017 · 13 comments

Comments

@phoet
Copy link
Member

phoet commented Dec 28, 2017

in order to support full SSL via heroku, there need to be some changes to the dns setup.

i'm currently checking it out for the onruby.eu domains so that we can use them as a blueprint for all other domains.

@phoet
Copy link
Member Author

phoet commented Dec 28, 2017

point the CNAME to DOMAIN.herokudns.com so for www.onruby.eu it is www.onruby.eu.herokudns.com

@phoet phoet removed their assignment Dec 28, 2017
@phoet
Copy link
Member Author

phoet commented Dec 28, 2017

please take care of your custom domain DNS settings as seen above

→ heroku certs:auto
=== Automatic Certificate Management is enabled on onruby

Certificate details:
Common Name(s): berlin.onruby.eu
                bonn.onruby.eu
                bremen.onruby.eu
                cologne.onruby.eu
                dresden.onruby.eu
                hamburg.onruby.eu
                innsbruck.onruby.eu
                karlsruhe.onruby.eu
                leipzig.onruby.eu
                madridrb.onruby.at
                madridrb.onruby.eu
                munich.onruby.eu
                railsgirlshh.onruby.eu
                saar.onruby.eu
                www.onruby.at
                www.onruby.eu
Expires At:     2018-03-28 12:09 UTC
Issuer:         /C=US/O=Let's Encrypt/CN=Let's Encrypt Authority X3
Starts At:      2017-12-28 12:09 UTC
Subject:        /CN=berlin.onruby.eu
SSL certificate is verified by a root authority.

Domain                  Status
──────────────────────  ────────────
rugsaar.de              Failing
dresden.onruby.de       Failing
innsbruck.onruby.eu     DNS Verified
railsgirlshh.onruby.de  Failing
colognerb.de            Failing
onruby.de               Failing
bonn.onruby.de          Failing
innsbruck-rb.at         Failing
madridrb.onruby.eu      DNS Verified
madridrb.onruby.at      Failing
cologne.onruby.de       Failing
berlin.onruby.de        Failing
leipzig.onruby.de       Failing
www.onruby.eu           DNS Verified
karlsruhe.onruby.de     Failing
rug-b.de                Failing
saar.onruby.eu          DNS Verified
onruby.at               Failing
railsgirlshh.onruby.eu  DNS Verified
bremen.onruby.de        Failing
innsbruck-ruby.at       Failing
berlin.onruby.eu        DNS Verified
hamburg.onruby.eu       DNS Verified
www.koelschrb.de        Failing
madridrb.com            Failing
www.madridrb.com        Failing
onruby.eu               Failing
hamburg.onruby.de       Failing
www.rugsaar.de          Failing
munich.onruby.de        Failing
cologne.onruby.eu       DNS Verified
madridrb.onruby.de      Failing
bremen.onruby.eu        DNS Verified
leipzig.onruby.eu       DNS Verified
bonn.onruby.eu          DNS Verified
www.innsbruck-ruby.at   Failing
koelschrb.de            Failing
www.onruby.de           Failing
innsbruck.onruby.de     Failing
karlsruhe.onruby.eu     DNS Verified
www.colognerb.de        Failing
www.innsbruck-rb.at     Failing
munich.onruby.eu        DNS Verified
www.rug-b.de            Failing
dresden.onruby.eu       DNS Verified
innsbruck.onruby.at     DNS Verified
www.onruby.at           Failing
saar.onruby.de          Failing

@jhilden
Copy link
Contributor

jhilden commented Dec 28, 2017

@bumi are you in control of colognerb.de?
@phoet I think koelschrb.de does not exist anymore and can be deleted.

@bumi
Copy link

bumi commented Jan 2, 2018

@jhilden railslove handles colognerb.de guess you have access to the DNS entries or @kangguru can help.

@kangguru
Copy link

kangguru commented Jan 4, 2018

yep i do, changed the settings, site seems to be down now 😱 although i haven't checked before the change.

@phoet
Copy link
Member Author

phoet commented Jan 5, 2018

from my phone, it looks like the *.cologne.rb has no or bad DNS information. I think the root works, but subdomain configuration is broken.

the site works fine through cologne.onruby.de

@kangguru
Copy link

mh, any idea?

https://devcenter.heroku.com/articles/ssl#change-your-dns-for-all-domains-on-your-app

dig www.colognerb.de cname +short
colognerb.de.herokudns.com.

sounds ok to me

@phoet
Copy link
Member Author

phoet commented Jan 12, 2018

sorry, i think it must be with the subdomain www.colognerb.de.herokudns.com

changing dns is always such a PITA because of the caching and ttls :(

@kangguru
Copy link

yea, should have spotted that myself. now it works:tm:

@jhilden
Copy link
Contributor

jhilden commented May 16, 2018

DNS resolution still often does not work when people just type in colognerb.de (without the www).

$ curl -v colognerb.de
* Rebuilt URL to: colognerb.de/
* Could not resolve host: colognerb.de
* Closing connection 0
curl: (6) Could not resolve host: colognerb.de

Some browsers will automatically redirect to the www version, but it seems that it does not work for everybody.

This is what we have configured:
image

@phoet
Copy link
Member Author

phoet commented May 16, 2018

@jhilden AFAIK you either have to setup CNAME flattening which is not supported by all DNS providers, or setup a redirect from the root to www.

@phoet
Copy link
Member Author

phoet commented Feb 1, 2019

heroku certs do not really cut it here...

i decided to handle everything through cloudflare instead.

if you want your domain to run with SSL support, please configure

dana.ns.cloudflare.com
will.ns.cloudflare.com

as your external DNS servers.

in case you already have a cloudflare setup, just CNAME your domain to onruby.herokuapp.com like

screen shot 2019-02-01 at 14 53 06

with Always Use HTTPS on and SSL in Full mode.

@phoet
Copy link
Member Author

phoet commented May 15, 2019

cloudflare is ready to go, we just need the domainserver to be properly configured like so #360 (comment)

@phoet phoet closed this as completed May 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants