jupyterhub / the-littlest-jupyterhub

Simple JupyterHub distribution for 1-100 users on a single server
https://tljh.jupyter.org
BSD 3-Clause "New" or "Revised" License
1.04k stars 341 forks source link

TLJH SSL Configuration not working #533

Closed dk67604 closed 3 years ago

dk67604 commented 4 years ago

I'm following this link: http://tljh.jupyter.org/en/latest/howto/admin/https.html#howto-admin-https-manual Currently, I do have my own certificate which I tried to set up using tljh manual https. I'm getting below error in traefik logs:

Mar 09 13:41:44 dbk-minerva traefik[21853]: time="2020-03-09T13:41:44Z" level=info msg="Using TOML configuration file /opt/tljh/state/traefik.toml"
Mar 09 13:41:44 dbk-minerva traefik[21853]: time="2020-03-09T13:41:44Z" level=info msg="No tls.defaultCertificate given for https: using the first item in tls.certificMar 09 13:41:44 dbk-minerva traefik[21853]: time="2020-03-09T13:41:44Z" level=info msg="Traefik version v1.7.18 built on 2019-09-26_01:56:30PM"
Mar 09 13:41:44 dbk-minerva traefik[21853]: time="2020-03-09T13:41:44Z" level=info msg="\nStats collection is disabled.\nHelp us improve Traefik by turning this featurMar 09 13:41:44 dbk-minerva traefik[21853]: time="2020-03-09T13:41:44Z" level=error msg="failed to load X509 key pair: tls: failed to find any PEM data in certificate Mar 09 13:41:44 dbk-minerva traefik[21853]: time="2020-03-09T13:41:44Z" level=info msg="Preparing server http &{Address::80 TLS:<nil> Redirect:0xc00061d700 Auth:<nil> Mar 09 13:41:44 dbk-minerva traefik[21853]: time="2020-03-09T13:41:44Z" level=info msg="Preparing server https &{Address::443 TLS:0xc000326120 Redirect:<nil> Auth:<nilMar 09 13:41:44 dbk-minerva traefik[21853]: time="2020-03-09T13:41:44Z" level=error msg="Unable to add a certificate to the entryPoint \"https\" : unable to generate TMar 09 13:41:44 dbk-minerva traefik[21853]: time="2020-03-09T13:41:44Z" level=info msg="Traefik version v1.7.18 built on 2019-09-26_01:56:30PM"
Mar 09 13:41:44 dbk-minerva traefik[21853]: time="2020-03-09T13:41:44Z" level=info msg="\nStats collection is disabled.\nHelp us improve Traefik by turning this featur
Mar 09 13:41:44 dbk-minerva traefik[21853]: time="2020-03-09T13:41:44Z" level=error msg="failed to load X509 key pair: tls: failed to find any PEM data in certificate 
Mar 09 13:41:44 dbk-minerva traefik[21853]: time="2020-03-09T13:41:44Z" level=info msg="Preparing server http &{Address::80 TLS:<nil> Redirect:0xc00061d700 Auth:<nil> 
Mar 09 13:41:44 dbk-minerva traefik[21853]: time="2020-03-09T13:41:44Z" level=info msg="Preparing server https &{Address::443 TLS:0xc000326120 Redirect:<nil> Auth:<nil
Mar 09 13:41:44 dbk-minerva traefik[21853]: time="2020-03-09T13:41:44Z" level=error msg="Unable to add a certificate to the entryPoint \"https\" : unable to generate T
msg="Starting server on :80"
msg="Preparing server auth_api &{Address:127.0.0.1:8099 TLS:<nil> Redirect:<nil> Auth:0xc0006ce000 WhitelistSourceRange:[] WhiteList:0xc000559660 Compress:false ProxyPmsg="Starting provider configuration.ProviderAggregator {}"
msg="Starting server on :443"
msg="Starting server on 127.0.0.1:8099"
msg="Starting provider *file.Provider {\"Watch\":true,\"Filename\":\"rules.toml\",\"Constraints\":null,\"Trace\":false,\"TemplateVersion\":0,\"DebugLogGeneratedTemplat msg="failed to load X509 key pair: tls: failed to find any PEM data in certificate input"
iampatterson commented 4 years ago

I wasn't able to find any good documentation for installing my own certification I purchased from GoDaddy. I just used the automatic one using let's encrypt. Pay attention to your domain and subdomains and you should be up and running in maybe 3 min. I am not sure what the benefit of using a purchased one is.

consideRatio commented 3 years ago

I'm not sure what this is about, but it could be something linked out from #726. I'm closing this in favor of that now since I can't extract a clear action point to take with regards to this in order to improve the github repository besides what's already tracked in #726.