Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Issues
  • #3292

Closed
Open
Created Mar 22, 2013 by Administrator@rootOwner

Would be great to add support for self-signed certificates

Created by: mrPsycho

When i tried to check installation of new 5.0 i got:

root@ubuntu:/home/git/gitlab# sudo -u git -H /home/git/gitlab-shell/bin/check Check GitLab API access: /usr/local/lib/ruby/1.9.1/net/http.rb:799:in connect': SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (OpenSSL::SSL::SSLError) from /usr/local/lib/ruby/1.9.1/net/http.rb:799:inblock in connect' from /usr/local/lib/ruby/1.9.1/timeout.rb:54:in timeout' from /usr/local/lib/ruby/1.9.1/timeout.rb:99:intimeout' from /usr/local/lib/ruby/1.9.1/net/http.rb:799:in connect' from /usr/local/lib/ruby/1.9.1/net/http.rb:755:indo_start' from /usr/local/lib/ruby/1.9.1/net/http.rb:744:in start' from /home/git/gitlab-shell/lib/gitlab_net.rb:42:inget' from /home/git/gitlab-shell/lib/gitlab_net.rb:28:in check' from /home/git/gitlab-shell/bin/check:11:in'

so i had to add string not to check certificate at /home/git/gitlab-shell/lib/gitlab_net.rb from:

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = (url.port == 443)
request = Net::HTTP::Get.new(url.request_uri)
http.start {|http| http.request(request) }

to: http = Net::HTTP.new(url.host, url.port) http.use_ssl = (url.port == 443) http.verify_mode = OpenSSL::SSL::VERIFY_NONE if http.use_ssl? request = Net::HTTP::Get.new(url.request_uri) http.start {|http| http.request(request) }

And all now is fine

Assignee
Assign to
Time tracking