summaryrefslogtreecommitdiffstats
path: root/apps/req.c
diff options
context:
space:
mode:
authorTomas Mraz <tomas@openssl.org>2022-03-25 15:13:16 +0100
committerTomas Mraz <tomas@openssl.org>2022-04-01 09:37:05 +0200
commite4cdcb8bc44250aa4e0893dc4a7d64668f0fb949 (patch)
tree5401341ae1491e177a24c1089f49457a1a786bff /apps/req.c
parent927d0566ded0dff9d6c5abc8a40bb84068446b76 (diff)
req, x509: Allow printing modulus of RSA-PSS keys
Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from https://github.com/openssl/openssl/pull/17990)
Diffstat (limited to 'apps/req.c')
-rw-r--r--apps/req.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/req.c b/apps/req.c
index 7e59e673e0..04a1ccbc04 100644
--- a/apps/req.c
+++ b/apps/req.c
@@ -986,7 +986,7 @@ int req_main(int argc, char **argv)
goto end;
}
fprintf(stdout, "Modulus=");
- if (EVP_PKEY_is_a(tpubkey, "RSA")) {
+ if (EVP_PKEY_is_a(tpubkey, "RSA") || EVP_PKEY_is_a(tpubkey, "RSA-PSS")) {
BIGNUM *n = NULL;
if (!EVP_PKEY_get_bn_param(tpubkey, "n", &n))