refit icon indicating copy to clipboard operation
refit copied to clipboard

Re-Sign NuGet Packages

Open taspeotis-xt opened this issue 5 months ago • 44 comments

Can the NuGet packages please be re-signed? The signatures are not valid right now:

/home/runner/work/***/***/src/***/***.csproj :
  error NU3012: Package 'Refit 10.1.6' from source 'https://api.nuget.org/v3/index.json':
  The author primary signature found a chain building issue: Revoked: certificate revoked
/home/runner/work/***/***/src/***/***.csproj :
  error NU3012: Package 'Refit.HttpClientFactory 10.1.6' from source 'https://api.nuget.org/v3/index.json':
  The author primary signature found a chain building issue: Revoked: certificate revoked

Signing cert (now revoked):

Subject Name: CN=Glenn Watson, O=Glenn Watson, L=Mooroolbark, S=Victoria, C=AU
SHA256 hash:  09702DACA40821B9E2F12DF12FB32479AD60F6C5C73A69E3EB35E06C9C3F898B
Valid from:   02/21/2026 06:49:49 to 02/20/2027 06:49:49

Affects at least Refit and Refit.HttpClientFactory 10.1.6 from nuget.org.

taspeotis-xt avatar Jun 03 '26 02:06 taspeotis-xt

I have checked the public CRL http://crls.ssl.com/SSLcom-SubCA-CodeSigning-RSA-4096-R1.crl:

Serial Number:   051d6c7b8aedf6b077d4a1b8942c8df2
Revocation Date: 2026-06-02 16:32 UTC

taspeotis-xt avatar Jun 03 '26 02:06 taspeotis-xt

This problem is blocking our operations (CI builds, etc.) and the workaround (DOTNET_NUGET_SIGNATURE_VERIFICATION: "false") is unsecure.

Please treat this issue as top priority. 🙏

Also, please be assured that the work you do with this repository is important, many people like this nuget package, and we are grateful for it! ❤️

ghost avatar Jun 03 '26 06:06 ghost

Just woke up and saw our CI Builds failing. Would appreciate a fast fix.

xIceFox avatar Jun 03 '26 07:06 xIceFox

Are there information about the reason behind the revocation? It doesn't seem it expired but was actively revoked.

dlerps avatar Jun 03 '26 07:06 dlerps

any update?

UsmanSabir avatar Jun 03 '26 07:06 UsmanSabir

This problem is blocking our operations (CI builds, etc.) and the workaround (DOTNET_NUGET_SIGNATURE_VERIFICATION: "false") is unsecure.

Please treat this issue as top priority. 🙏

Also, please be assured that the work you do with this repository is important, many people like this nuget package, and we are grateful for it! ❤️

+1

theelicht avatar Jun 03 '26 07:06 theelicht

Some update from the maintainers would be welcome. At least give us the reason why the certificate was revoked. Is there an active security risk with the 10.1.6 version, should we take action, can we expect a fix soon?

josegers-nieuwestroom avatar Jun 03 '26 07:06 josegers-nieuwestroom

We have the same issue our CI is blocked due to this dependency. Thanks for an update

markus-codechefs avatar Jun 03 '26 07:06 markus-codechefs

Same here

osa0805 avatar Jun 03 '26 07:06 osa0805

On windows btw it still restores. On linux it breaks, just reproduced it locally. I think windows certificate revocation policy is not as strict.

xIceFox avatar Jun 03 '26 07:06 xIceFox

Getting the same issue, had to roll to version 10.0.1 to work about it

Tanzy avatar Jun 03 '26 08:06 Tanzy

I've taken the same workaround as @Tanzy for now. Patiently awaiting a response from the devs for v10.1.6.

theelicht avatar Jun 03 '26 08:06 theelicht

Slightly off topic: can someone please explain why rolling back to 10.0.1 solves this issue?

ghost avatar Jun 03 '26 08:06 ghost

Slightly off topic: can someone please explain why does rolling back to 10.0.1 solve this issue?

@ozsvart-karoly-nx, the previous version still has a working certificate and our tests still function with it. Until the certificate is fixed for the latest version, we can at least run our CI/CD. We plan on upgrading to the latest version again as soon as it's fixed. It does not fix the issue itself.

theelicht avatar Jun 03 '26 09:06 theelicht

I went through certificate validation chains (thanks ChatGPT), and managed to confirm that:

  • On Windows the certificate chain is fully trusted (using latest dotnet sdk 10.0.300)
  • On Ubuntu 24.04 @ WSL as a Linux proxy validation fails

Specifically, it fails at

echo "$OCSP_URL" && \
openssl ocsp \
  -issuer cert-3.pem \
  -cert cert-4.pem \
  -url "$OCSP_URL" \
  -resp_text \
  -noverify
http://ocsps.ssl.com
OCSP Response Data:
    OCSP Response Status: successful (0x0)
    Response Type: Basic OCSP Response
    Version: 1 (0x0)
    Responder Id: 54C2FE10950093CD6AF5E7C0D7D9B24BB88F0CE3
    Produced At: Jun  3 06:21:23 2026 GMT
    Responses:
    Certificate ID:
      Hash Algorithm: sha1
      Issuer Name Hash: 8E7FC0E3327BB0153869661F5BBFD2283EF98D30
      Issuer Key Hash: 54C2FE10950093CD6AF5E7C0D7D9B24BB88F0CE3
      Serial Number: 051D6C7B8AEDF6B077D4A1B8942C8DF2
    Cert Status: revoked
    Revocation Time: Jun  2 16:32:23 2026 GMT
    Revocation Reason: unspecified (0x0)
    This Update: Jun  3 06:21:23 2026 GMT
    Next Update: Jun 10 06:21:22 2026 GMT

    Signature Algorithm: sha256WithRSAEncryption
    Signature Value:
        9d:a1:93:a8:70:b1:58:86:ba:d5:66:b8:da:61:db:49:0a:1f:
        f7:e6:48:f1:76:3b:fb:5d:a2:98:fa:a8:79:19:00:01:34:b9:
        80:71:ed:34:fb:e5:6b:78:1b:d5:f5:04:11:82:4d:86:27:f1:
        01:8e:f9:55:73:48:7e:86:20:0f:ab:45:1c:6c:0c:3b:f7:28:
        c6:41:f5:c6:5b:7a:84:df:c2:ff:cb:bd:86:a6:e7:cb:87:f5:
        59:ca:f0:68:66:62:6a:eb:f0:d8:c5:54:03:c9:4f:e6:42:0b:
        ba:0c:24:00:36:e5:76:aa:a4:4e:2e:4f:db:70:2a:15:39:72:
        b6:8f:66:33:37:eb:af:cf:8e:2c:77:05:b1:61:ad:ea:6e:38:
        1f:5e:4e:1d:1f:34:8f:7a:a3:6a:1a:3a:94:c8:a9:4e:65:a1:
        d6:f5:6b:cd:2c:9c:f5:44:d1:3e:23:d3:4f:3b:eb:54:5f:0b:
        c9:0e:cf:59:29:7f:f0:4e:35:44:9a:d3:6b:8e:bc:09:ce:1f:
        ba:56:d9:ac:57:31:83:8c:33:ff:3d:3d:af:39:93:fa:ac:d5:
        7f:ac:43:04:14:0f:31:42:1d:80:2f:f5:b1:0e:c9:29:79:0f:
        05:61:2c:42:88:7a:d7:fc:bd:7a:04:14:ca:dc:3d:ec:97:bb:
        a3:1c:73:c1:df:14:8d:dd:17:fd:ea:af:c0:3d:ad:79:27:d5:
        1c:9f:ba:95:c4:cf:fc:b5:94:6a:a7:9e:03:8b:02:d3:d2:64:
        70:90:02:e2:e5:0b:65:89:a9:b7:ab:8c:27:09:60:fa:c3:76:
        9e:b4:52:50:21:58:21:9f:38:9e:7d:3c:78:cc:00:83:fb:95:
        4e:62:5d:55:ea:3a:94:ed:24:97:e7:b9:37:1c:b1:c3:df:71:
        b7:bd:f6:c4:70:4e:f9:04:30:5e:50:04:22:c3:00:d7:ad:34:
        f1:ca:8d:eb:ce:22:c1:4f:ac:f6:78:2d:f5:de:41:99:5d:99:
        49:d3:6b:d2:f0:a9:d3:da:23:22:59:72:bc:07:11:2c:81:52:
        46:84:58:cb:5d:57:5a:6d:59:6b:80:a3:98:b1:19:6f:6c:25:
        b5:81:dc:b6:6c:b4:d5:cc:de:a7:3e:fc:48:6b:8b:db:72:f2:
        bd:28:f9:8e:4a:c7:aa:6c:bd:d6:eb:f0:fc:d4:fb:d9:da:93:
        db:07:67:69:42:fa:3a:77:07:e4:c2:cc:16:cc:69:41:42:53:
        db:27:0a:53:e4:da:b9:9d:46:06:b0:6c:57:57:5b:fa:33:7e:
        6c:c7:87:23:8c:73:37:91:d4:c4:c8:aa:c9:5a:db:fb:6d:f6:
        6a:97:87:c6:f9:66:25:58
cert-4.pem: revoked
        This Update: Jun  3 06:21:23 2026 GMT
        Next Update: Jun 10 06:21:22 2026 GMT
        Reason: unspecified
        Revocation Time: Jun  2 16:32:23 2026 GMT

Two notable things:

  • Revocation time is Jun 2 16:32:23 2026 GMT
  • Revocation reason is unspecified (0x0)

This is not really helpful but at least not keyCompromised

Ilia-Kosenkov avatar Jun 03 '26 09:06 Ilia-Kosenkov

@Ilia-Kosenkov Thank you for tracing down my observation 👍 Didn't have time to go deeper.

xIceFox avatar Jun 03 '26 09:06 xIceFox

hi Any update on the fix?. And if downgrading the version will have any breaking changes? How soon we can get fix on this.

giteshsingh avatar Jun 03 '26 11:06 giteshsingh

@giteshsingh remember this is an Open Source project and the maintainers that can resolve this issue may not even be up yet.

Tanzy avatar Jun 03 '26 11:06 Tanzy

Subject Name: CN=Glenn Watson, O=Glenn Watson, L=<Redacted for privacy>, S=<Redacted for privacy>, C=AU

@glennawatson created the certificate, maybe the direct ping helps.

Based on the GitHub Profile, he is from Australia, where it is currently evening. Maybe try to implement the workaround by downgrading to 10.0.1, I think we need to wait till tomorrow.

Still, this is open source and we can't expect people who are open sourcing to be on a watch 24/7. Like @Tanzy said.

xIceFox avatar Jun 03 '26 11:06 xIceFox

hi Any update on the fix?. And if downgrading the version will have any breaking changes? How soon we can get fix on this.

@giteshsingh The newest version is 10.1.6. downgrading to 10.0.1 should be no problem, since its no major change you are going back. For reference see https://semver.org/

Semantic Versioning
Semantic Versioning spec and website

xIceFox avatar Jun 03 '26 11:06 xIceFox