ssl - Gitlab pages and Jekyll - issue with set up TLS Lets Encrypted -


i try add ssl/tls on static web site. use gitlab static pages, , jekyll content.
follow instructions set tls - gitlab tutorial.

i stack on part - got 404 error gitlab pages

once build finishes, test again if working well:

# note we're using actual domain, not localhost anymore $ curl http://yourdomain.org/.well-known/acme-challenge/5tbu788fw0tq5eowzmdu1gv3e9c33gxjv58hvtwtbdm 

the problem next generated certificate command ./letsencrypt-auto certonly -a manual -d example.com
created custom page letsencrypt-setup.html in root directory whit appropriate content.

i run jekyll build command , created _site/.well-known/acme-challenge/5tbu788fw0tq5eowzmdu1gv3e9c33gxjv58hvtwtbdm.html page.
when run curl command page worked , without .html extension - both commands work, , return appropriate value

curl http://localhost:4000/.well-known/acme-challenge/5tbu788fw0tq5eowzmdu1gv3e9c33gxjv58hvtwtbdm curl http://localhost:4000/.well-known/acme-challenge/5tbu788fw0tq5eowzmdu1gv3e9c33gxjv58hvtwtbdm.html 

when commit changes , push gitlab after build , deploy can fetch appropriate content second command

curl http://example.com/.well-known/acme-challenge/5tbu788fw0tq5eowzmdu1gv3e9c33gxjv58hvtwtbdm.html 

when ran

curl http://example.com/.well-known/acme-challenge/5tbu788fw0tq5eowzmdu1gv3e9c33gxjv58hvtwtbdm 

i got 404 error.

if press continue in ./letsencrypte script got 404 error. tool try against url without .html extension.

i read comments in tutorial , try workaround didn't work me.

i have no clue try next - have no lot experience jekyll/ssl

what did copied challenge file after build finished on gitlab, since not figure out how make jekyll omit file extension.

my .gitlab-ci.yml file

image: ruby:2.3  pages:   script:   - gem install jekyll   - jekyll build -d public   # use when creating new letsencrypt cert, since jekyll adds .html file , letsencrypd not expect .html extension   - cp ./public/.well-known/acme-challenge/hashfile-from-letsencrypt.html ./public/.well-known/acme-challenge/hashfile-from-letsencrypt   artifacts:     paths:     - public   only:   - master 

Comments

Popular posts from this blog

amazon web services - S3 Pre-signed POST validate file type? -

c# - Check Keyboard Input Winforms -