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

[BUG] CERTIFICATE_VERIFY_FAILED for GET /pool_info #7278

Closed
yshklarov opened this issue Jul 9, 2021 · 1 comment
Closed

[BUG] CERTIFICATE_VERIFY_FAILED for GET /pool_info #7278

yshklarov opened this issue Jul 9, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@yshklarov
Copy link

Describe the bug

After adding a plot NFT, the pool info cannot be obtained. Errors of this sort appear in debug.log once per minute:

2021-07-09T02:10:40.203 farmer chia.farmer.farmer : ERROR Exception in GET /pool_info https://na1.pool.space, Cannot connect to host na1.pool.space:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1131)')]

Moreover, the difficulty and authentication_token_timeout for the plot fail to be set (warnings spam debug.log.)

To Reproduce

Steps to reproduce the behavior:

  1. Either add a plot NFT in the GUI client, or chia plotnft create -s pool -u <pool>.
  2. If added in the GUI client, errors will begin to appear in debug.log. If added from the command line, the error will be visible immediately.

Desktop

  • OS: linux
  • OS Version/Flavor: arch linux, fully up to date
  • Chia version: 1.2.0, from the unofficial AUR package.

Proposed solution

In _pool_get_pool_info(), pass a custom SSL context to aiohttp.ClientSession, as is done in fetch() in server.py.

Apologies, but I'm unable to build the source so I can't test this. But I'm guessing it ought to be done regardless (why else is mozilla-ca in the source tree?)

@yshklarov yshklarov added the bug Something isn't working label Jul 9, 2021
@yshklarov
Copy link
Author

Oops, this is actually a duplicate of #7273.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants