Fix 'openssl req' to correctly use the algorithm from '-newkey algo:nnnn'
authorRichard Levitte <levitte@openssl.org>
Fri, 25 Jun 2021 06:36:30 +0000 (08:36 +0200)
committerRichard Levitte <levitte@openssl.org>
Sat, 26 Jun 2021 08:31:04 +0000 (10:31 +0200)
commit426005eea5afd64bb76006f0fda69502ab3e008d
treeb36257a43e4dac2509ecf17cca01c5c62f9e1085
parent92eb592b3b70a1f8e08b7160e54e367ba0d0aca2
Fix 'openssl req' to correctly use the algorithm from '-newkey algo:nnnn'

We used the original string, which meant fetching for, for example,
'rsa:2048'.  That was, of course, doomed to fail.

Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15912)
apps/req.c