[haiku-bugs] Re: [Haiku] #7707: Github's SSL Cert does not work in Git/Wget

#7707: Github's SSL Cert does not work in Git/Wget
----------------------------------+----------------------------
   Reporter:  jrabbit             |      Owner:  nobody
       Type:  bug                 |     Status:  new
   Priority:  blocker             |  Milestone:  R1/alpha3
  Component:  Network & Internet  |    Version:  R1/Development
 Resolution:                      |   Keywords:  ssl, github
 Blocked By:                      |   Blocking:
Has a Patch:  0                   |   Platform:  All
----------------------------------+----------------------------

Comment (by mmadia):

 From IRC, it appears that applications are looking in a different
 directory than where the certificate file is located.

 {{{
 ~/Desktop> strace wget https://dev.haiku-os.org/chrome/site/logo.png |
 grep /boot/common
 [ 24726] _kern_read_stat(0xffffffff, "/boot/common/lib/libroot-addon-
 icu.so", true, 0x7ffecf24, 0x58) = 0x80006003 No such file or directory
 (23 us)
 [ 24726] _kern_read_stat(0xffffffff, "/boot/common/lib/libicudata.so.44",
 true, 0x7ffecea4, 0x58) = 0x80006003 No such file or directory (22 us)
 [ 24726] _kern_read_stat(0xffffffff, "/boot/common/lib/libicui18n.so.44",
 true, 0x7ffecea4, 0x58) = 0x80006003 No such file or directory (23 us)
 [ 24726] _kern_read_stat(0xffffffff, "/boot/common/lib/libicuio.so.44",
 true, 0x7ffecea4, 0x58) = 0x80006003 No such file or directory (21 us)
 [ 24726] _kern_read_stat(0xffffffff, "/boot/common/lib/libicule.so.44",
 true, 0x7ffecea4, 0x58) = 0x80006003 No such file or directory (19 us)
 [ 24726] _kern_read_stat(0xffffffff, "/boot/common/lib/libiculx.so.44",
 true, 0x7ffecea4, 0x58) = 0x80006003 No such file or directory (1107 us)
 [ 24726] _kern_read_stat(0xffffffff, "/boot/common/lib/libicutu.so.44",
 true, 0x7ffecea4, 0x58) = 0x80006003 No such file or directory (23 us)
 [ 24726] _kern_read_stat(0xffffffff, "/boot/common/lib/libicuuc.so.44",
 true, 0x7ffecea4, 0x58) = 0x80006003 No such file or directory (24 us)
 --2011-06-18 11:45:59--  https://dev.haiku-os.org/chrome/site/logo.png
 Resolving dev.haiku-os.org... 188.40.89.174
 Connecting to dev.haiku-os.org|188.40.89.174|:443... connected.
 ERROR: cannot verify dev.haiku-os.org's certificate, issued by
 `/C=IL/O=StartCom Ltd./OU=Secure Digital Certificate Signing/CN=StartCom
 Class 2 Primary Intermediate Server CA':
   Unable to locally verify the issuer's authority.
 To connect to dev.haiku-os.org insecurely, use `--no-check-certificate'.
 [ 24726] _kern_open(0xffffffff, "/boot/common/data/cert.pem", 0x0, 0x0) =
 0x80006003 (31 us)
 [ 24726] _kern_open(0xffffffff,
 "/boot/common/settings/network/resolv.conf", 0x0, 0x0) = 0x00000003 (14
 us)
 [ 24726] _kern_read_stat(0xffffffff, "/boot/common/data/certs/ae8153b9.0",
 true, 0x7ffee558, 0x58) = 0x80006003 No such file or directory (29 us)
 ~/Desktop>
 }}}

 As a work-around,
 {{{
 cp /boot/common/ssl/certs/cacert.pem /boot/common/data/cert.pem
 }}}

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/7707#comment:7>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: