Gitlab企业版HTTPS

Gitlab企业版HTTPS,gitlab,gitlab-omnibus,gitlab-ce,gitlab-ee,Gitlab,Gitlab Omnibus,Gitlab Ce,Gitlab Ee,我在没有许可证的情况下建立gitlab ee。我想有https,但它给我这个错误 配方:letsencrypt::http\U授权 *letsencrypt_证书[gitlab.example.com]操作创建 *acme_证书[暂存]操作创建 *文件[gitlab.example.com SSL密钥]操作如果缺少创建(最新) 正在运行的处理程序: 运行gitlab ctl重新配置时出错: letsencrypt_证书[gitlab.example.com](letsencrypt::http_

我在没有许可证的情况下建立gitlab ee。我想有https,但它给我这个错误

配方:letsencrypt::http\U授权 *letsencrypt_证书[gitlab.example.com]操作创建 *acme_证书[暂存]操作创建 *文件[gitlab.example.com SSL密钥]操作如果缺少创建(最新)

正在运行的处理程序: 运行gitlab ctl重新配置时出错:

letsencrypt_证书[gitlab.example.com](letsencrypt::http_授权行5)有一个错误:Acme::Client::error::格式错误:Acme_证书[staging](/opt/gitlab/embedded/cookbooks/cache/cookbooks/letsencrypt/resources/certificate.rb行25)有一个错误:Acme::Client::error::格式错误:不允许使用方法


我不明白为什么它会让认证的创建失败。它创建它们并将它们存储在
/etc/gitlab/ssl
中,任何人都可以帮助吗?

为了子孙后代,为了完成@Rafael Pardini的回答,提到的解决方案归结为简单地注释
acme_证书“staging”
块(从
do
end
)在
/opt/gitlab/embedded/cookbooks/letsencrypt/resources/certificate.rb文件中。

我一直是gitlab的拥护者,但这确实让我怀疑是否应该继续这样做。这对我来说很有效。我想这就是支持合同的意义所在。
  ================================================================================
  Error executing action `create` on resource 'acme_certificate[staging]'
  ================================================================================

  Acme::Client::Error::Malformed
  ------------------------------
  Method not allowed

  Cookbook Trace:
  ---------------
  /opt/gitlab/embedded/cookbooks/cache/cookbooks/acme/resources/certificate.rb:77:in `block in class_from_file'

  Resource Declaration:
  ---------------------
  suppressed sensitive resource output

  Compiled Resource:
  ------------------
  suppressed sensitive resource output

  System Info:
  ------------
  chef_version=14.13.11
  platform=ubuntu
  platform_version=18.04
  ruby=ruby 2.6.3p62 (2019-04-16 revision 67580) [x86_64-linux]
  program_name=/opt/gitlab/embedded/bin/chef-client
  executable=/opt/gitlab/embedded/bin/chef-client


================================================================================
Error executing action `create` on resource 'letsencrypt_certificate[gitlab.example.com]'
================================================================================

Acme::Client::Error::Malformed
------------------------------
acme_certificate[staging] (/opt/gitlab/embedded/cookbooks/cache/cookbooks/letsencrypt/resources/certificate.rb line 25) had an error: Acme::Client::Error::Malformed: Method not allowed

Cookbook Trace:
---------------
/opt/gitlab/embedded/cookbooks/cache/cookbooks/acme/resources/certificate.rb:77:in `block in class_from_file'

Resource Declaration:
---------------------
# In /opt/gitlab/embedded/cookbooks/cache/cookbooks/letsencrypt/recipes/http_authorization.rb

  5: letsencrypt_certificate site do
  6:   crt node['gitlab']['nginx']['ssl_certificate']
  7:   key node['gitlab']['nginx']['ssl_certificate_key']
  8:   notifies :run, "execute[reload nginx]", :immediate
  9:   notifies :run, 'ruby_block[display_le_message]'
 10:   only_if { omnibus_helper.service_up?('nginx') }
 11: end

Compiled Resource:
------------------
# Declared in /opt/gitlab/embedded/cookbooks/cache/cookbooks/letsencrypt/recipes/http_authorization.rb:5:in `from_file'

letsencrypt_certificate("gitlab.example.com") do
  action [:create]
  default_guard_interpreter :default
  declared_type :letsencrypt_certificate
  cookbook_name "letsencrypt"
  recipe_name "http_authorization"
  crt "/etc/gitlab/ssl/gitlab.example.com.crt"
  key "/etc/gitlab/ssl/gitlab.example.com.key"
  alt_names []
  cn "gitlab.example.com"
  only_if { #code block }
end

System Info:
------------
chef_version=14.13.11
platform=ubuntu
platform_version=18.04
ruby=ruby 2.6.3p62 (2019-04-16 revision 67580) [x86_64-linux]
program_name=/opt/gitlab/embedded/bin/chef-client
executable=/opt/gitlab/embedded/bin/chef-client