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

fetchpijul is broken: unable to get local issuer certificate #270252

Closed
2xsaiko opened this issue Nov 26, 2023 · 1 comment · Fixed by #272520
Closed

fetchpijul is broken: unable to get local issuer certificate #270252

2xsaiko opened this issue Nov 26, 2023 · 1 comment · Fixed by #272520
Labels
0.kind: bug Something is broken

Comments

@2xsaiko
Copy link
Contributor

2xsaiko commented Nov 26, 2023

Describe the bug

The pijul fetcher throws a certificate error when used, for example with the following command:

% nix build -I nixpkgs=flake:nixpkgs/master --impure --expr '(import <nixpkgs> {}).fetchpijul {url = "https://nest.pijul.com/pijul/pijul";}

Repository created at /nix/store/5fijkz7p9y1fsqbry4fk40j26pgh77bv-fetchpijul
Error: error sending request for url (https://nest.pijul.com/pijul/pijul/.pijul?channel=main&id=): error trying to connect: error:0A000086:SSL routines:tls_post_process_server_certificate:certificate verify failed:ssl/statem/statem_clnt.c:1889: (unable to get local issuer certificate)

Related: #3382

Steps To Reproduce

Steps to reproduce the behavior:

  1. Use fetchpijul (for example like in the command above)
  2. Fetch fails with above error

Expected behavior

Repository gets fetched successfully

Notify maintainers

@nrabulinski

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.1.63, NixOS, 23.11 (Tapir), 23.11.20231121.cccc85f`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.1`
 - nixpkgs: `/etc/nix/inputs/nixpkgs`

Priorities

Add a 👍 reaction to issues you find important.

@2xsaiko 2xsaiko added the 0.kind: bug Something is broken label Nov 26, 2023
@nrabulinski
Copy link
Member

Oh my, thanks for notifying, I'll make a PR to fix that ASAP!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug Something is broken
Projects
None yet
2 participants