I have successfully setup Gitlab to work in a pre-existing LAMP environment, using Apache. When trying to create a certificate with Certbot (the unbundled version), I get this error message:
Failed authorization procedure. gitlab.example.org (http-01): urn:ietf:params:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://gitlab.example.org/users/sign_in [XXX.YYY.ZZZ.000]: "\n<html class=“devise-layout-html”>\n<head prefix=“og: http://ogp.me/ns#”>\n<meta charset=“utf-8”>\n<meta content=“IE”
Detail: Invalid response from http://gitlab.example.org/users/sign_in [XXX.YYY.ZZZ.000]:
"\n<html class=“devise-layout-html”>\n<head
prefix=“og: http://ogp.me/ns#”>\n<meta charset=“utf-8”>\n<meta
content=“IE”
Does anyone have any experience with, or ideas for, solving this? It looks like the redirect to the user signup page prevents the certificate challenge to work, but I don’t know how to avoid that.