Reinit crypto before calling RSA.generate when generating keys.
Reinit crypto before calling RSA.generate when generating keys.

Fixes #28396

In order for the `-P` argument to work with salt-cloud, we need to
make sure we're re-initing crypto before calling RSA.generate. This
is similar to the fixes in #23825.

saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt