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:
...
Try install mingw-w64-x86_64-ca-certificates package. Is it solve your problem?
Thanks.
This package was actually already installed on my system (perhaps a dependencies should be added btw). However,
the certificates go into /mingw64/ssl/certs/ca-bundle.trust.crt
https://github.com/Alexpux/MINGW-packages/blob/master/mingw-w64-ca-certificates/ca-certificates-x86_64.install#L16
while the error message request /mingw64/ssl/certs/ca-bundle.trust.crt
(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 that seems what is expected by the glib-networking build:
https://github.com/Alexpux/MINGW-packages/blob/master/mingw-w64-glib-networking/PKGBUILD#L51
Indeed, by doing
ln -s /mingw64/ssl/ /ssl
the test program runs as expected.
will fix it today
Fixed in glib-networking-2.44.0-3
Where can I find the commit and/or version 2.44.0-3 ?
We developing our package build scripts on github (if you read the wiki)
https://github.com/Alexpux/MINGW-packages
This is commit what you want
https://github.com/Alexpux/MINGW-packages/commit/b395e62abbcf2ab83851948b1557c5a098ffce2e
I'm wrong: https://github.com/Alexpux/MINGW-packages/commit/b260b46ae77b562c48e0887d6c9116d684f4de7b