Index | Thread | Search

From:
Mikolaj Kucharski <mikolaj@kucharski.name>
Subject:
Re: salt: NameError: name 'rsa' is not defined
To:
Theo Buehler <tb@theobuehler.org>
Cc:
ports@openbsd.org
Date:
Thu, 22 Aug 2024 09:56:13 +0000

Download raw body.

Thread
On Thu, Aug 22, 2024 at 11:52:37AM +0200, Theo Buehler wrote:
> >   File "/usr/local/lib/python3.11/site-packages/salt/crypt.py", line 147, in gen_keys
> >     gen = rsa.generate_private_key(e, keysize)
> >           ^^^
> > NameError: name 'rsa' is not defined
> > 2024-08-22 08:31:45,971 [salt.crypt                                                  :284 ][INFO    ][39203] Generating keys: /etc/salt/pki/minion
> > --->8---
> > 
> > Log file grows rapidly with above errors. I noticed this recently, so I
> > am not sure when this exactly started to happen.
> 
> rsa seems to be used from py3-cryptography if available. Does the noise
> go away when you install that?

Yes, running `pkg_add -a py3-cryptography` solves the issue.

-- 
Regards,
 Mikolaj