https-portal: Doesn't work on http sites with basic-auth

Good Day @SteveLTN ,

I’m trying to redirect the site http://example.com (with basic-auth) to https://example.com but I keep on getting the following error:

u'error': {u'status': 403, u'type': u'urn:ietf:params:acme:error:unauthorized', u'detail': u'Invalid response from http://example.com/.well-known/acme-challenge/

http://example.com requires basic authentication to pass through

I’m not really knowledgeable about Let’s Encrypt but is there a way to convert an already authenticated http site to https?

I tried your basic-auth before, something like: DOMAINS: 'foo:bar'@example.com -> http://example.com but throws this error HTPASSWD: cannot create file /var/lib/https-portal/example.com/production/htaccess

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 15 (7 by maintainers)

Most upvoted comments

@RonieGSS OK. Stupid me. I didn’t prepare the directory before trying to generate htaccess file. I never found it out because when I test myself, it’s usually not the first time it’s run, so it saves the folder from last run. Fixed and will be release in 1.4.0 soon.