MSYS2-packages icon indicating copy to clipboard operation
MSYS2-packages copied to clipboard

Pacman- SSL certificate problem.

Open HieuLe-88 opened this issue 3 years ago • 4 comments

Describe the issue

SSL certificate problem.

Steps to Reproduce the Problem

When I execute "pacman -Syu", it shows alot of errors related to SSL certificate problem. How can I solve this issue?

  1. Download MSYS2 here https://www.msys2.org/
  2. Install it
  3. Execute bellow command.

pacman -Syu

  1. Errors: :: Synchronizing package databases... error: failed retrieving file 'mingw32.db' from repo.msys2.org : SSL certificate problem: self signed certificate in certificate chain error: failed retrieving file 'mingw32.db' from downloads.sourceforge.net : SSL certificate problem: self signed certificate in certificate chain error: failed retrieving file 'mingw32.db' from www2.futureware.at : SSL certificate problem: self signed certificate in certificate chain error: failed retrieving file 'mingw32.db' from mirror.yandex.ru : SSL certificate problem: self signed certificate in certificate chain error: failed retrieving file 'mingw32.db' from mirrors.tuna.tsinghua.edu.cn : SSL certificate problem: self signed certificate in certificate chain

HieuLe-88 avatar Jun 03 '21 10:06 HieuLe-88

Solved: Solution: Copy certificate of https://www.msys2.org/ to ca-bundle.crt file in C:\msys64\usr\ssl\certs

HieuLe-88 avatar Jun 03 '21 14:06 HieuLe-88

In my setup, those are already in that path.

Biswa96 avatar Jun 03 '21 14:06 Biswa96

Solved: Solution: Copy certificate of https://www.msys2.org/ to ca-bundle.crt file in C:\msys64\usr\ssl\certs

I copied the cert to the according folder but I still get the cert error. Would you provide me how to export the cert from www.msys2.org? Maybe i did something wrong...

SaihttamR avatar Jun 16 '22 06:06 SaihttamR

Is it not required to copy certificates manually. Try to update the packages with pacman -Syyu twice or use new installer from the website.

Biswa96 avatar Jun 16 '22 06:06 Biswa96