Menu

#181 Prebuilt libraries for libsoup/glib can not find TLS file database nor perform HTTPs request

1.0
closed
Alexx83
None
2015-07-29
2015-07-27
No

Steps to reproduce

1) Open an MinGW-w64 console

2) Install basic dependencies with pacman:

pacman -S gcc make mingw-w64-x86_64-cmake
mingw-w64-x86_64-glib2 mingw-w64-x86_64-libsoup

3) Extract the attached zip archive, move into the source and build the program:
cmake . -G "MSYS Makefiles"

4) Execute ./Test.exe

Actual Result

The following warning is displayed

(Test.exe:1112): GLib-Net-WARNING **: couldn't load TLS file database: L'ouverture du fichier ▒▒C:\msys64\mingw64/../ssl/certs/ca-bundle.crt▒▒ a ▒chou▒: No such file or directory

and no more text is printed. It seems that ca-bundle.crt is not installed.
Perhaps this should point to some standard Windows path for TLS?

Expected Result

The program should print the body of the HTTPs response:

...
1 Attachments

Discussion

  • Alexx83

    Alexx83 - 2015-07-27

    Try install mingw-w64-x86_64-ca-certificates package. Is it solve your problem?

     
  • Frédéric Wang

    Frédéric Wang - 2015-07-28

    Indeed, by doing

    ln -s /mingw64/ssl/ /ssl

    the test program runs as expected.

     
  • Alexx83

    Alexx83 - 2015-07-28

    will fix it today

     
  • Alexx83

    Alexx83 - 2015-07-28
    • status: open --> closed
    • assigned_to: Alexx83
     
  • Alexx83

    Alexx83 - 2015-07-28

    Fixed in glib-networking-2.44.0-3

     
    • Frédéric Wang

      Frédéric Wang - 2015-07-29

      Where can I find the commit and/or version 2.44.0-3 ?