Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pacman- SSL certificate problem. #2529

Closed
HieuLe-88 opened this issue Jun 3, 2021 · 7 comments
Closed

Pacman- SSL certificate problem. #2529

HieuLe-88 opened this issue Jun 3, 2021 · 7 comments
Labels
not-bug General questions, not an issue

Comments

@HieuLe-88
Copy link

HieuLe-88 commented Jun 3, 2021

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
Copy link
Author

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

@Biswa96
Copy link
Member

Biswa96 commented Jun 3, 2021

In my setup, those are already in that path.

@SaihttamR
Copy link

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...

@Biswa96
Copy link
Member

Biswa96 commented Jun 16, 2022

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

@RzNmKX
Copy link

RzNmKX commented Jun 9, 2023

and what about those of us behind corporate proxies/firewalls that have their own SSL certificates/perform MITM? need a way to ignore SSL errors

@Biswa96
Copy link
Member

Biswa96 commented Jun 10, 2023

what about those of us behind corporate proxies/firewalls that have their own SSL certificates/perform MITM?

The procedure is explained here https://www.msys2.org/docs/faq/

@vinukshetty
Copy link

Most of them still face this issue even with the above solution, if you are also one among them then try this.

Solution:
Export certificate from https://repo.msys2.org/ and rename *.goskope.com to ca-bundle.crt file and place it into C:\msys64\usr\ssl\certs as shown below.

Note: please click on the highlighted hierarchy while downloading the cert file.

Capture2
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
not-bug General questions, not an issue
Projects
None yet
Development

No branches or pull requests

5 participants