[v3,2/4] utils: codegen: gen-ipa-pub-key: replace openssl rsa with openssl pkey
diff mbox series

Message ID 20260519030020.408693-3-hpa@redhat.com
State Changes Requested
Headers show
Series
  • Implement ML-DSA-65 for Post-Quantum Cryptographic compliance
Related show

Commit Message

Kate Hsuan May 19, 2026, 3 a.m. UTC
The command "openssl ras" was replaced with "openssl pkey" to cover
different key algorithms.

Reviewed-by: Barnabás Pőcze <barnabas.pocze@ideasonboard.com>
Signed-off-by: Kate Hsuan <hpa@redhat.com>
---
 utils/codegen/gen-ipa-pub-key.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Laurent Pinchart June 15, 2026, 2:42 p.m. UTC | #1
Hi Kate,

Thank you for the patch.

On Tue, May 19, 2026 at 11:00:18AM +0800, Kate Hsuan wrote:
> The command "openssl ras" was replaced with "openssl pkey" to cover
> different key algorithms.
> 
> Reviewed-by: Barnabás Pőcze <barnabas.pocze@ideasonboard.com>
> Signed-off-by: Kate Hsuan <hpa@redhat.com>

I checked when openssl-pkey got introduced, and it seems to have been
there forever.

Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>

> ---
>  utils/codegen/gen-ipa-pub-key.py | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/utils/codegen/gen-ipa-pub-key.py b/utils/codegen/gen-ipa-pub-key.py
> index dc3e7d5f..9854c0c2 100755
> --- a/utils/codegen/gen-ipa-pub-key.py
> +++ b/utils/codegen/gen-ipa-pub-key.py
> @@ -21,7 +21,7 @@ def main(argv):
>      output = argv[3]
>  
>      try:
> -        ret = subprocess.run(['openssl', 'rsa', '-pubout', '-in', priv_key,
> +        ret = subprocess.run(['openssl', 'pkey', '-pubout', '-in', priv_key,
>                                '-outform', 'DER'],
>                               stdout=subprocess.PIPE)
>      except FileNotFoundError:

Patch
diff mbox series

diff --git a/utils/codegen/gen-ipa-pub-key.py b/utils/codegen/gen-ipa-pub-key.py
index dc3e7d5f..9854c0c2 100755
--- a/utils/codegen/gen-ipa-pub-key.py
+++ b/utils/codegen/gen-ipa-pub-key.py
@@ -21,7 +21,7 @@  def main(argv):
     output = argv[3]
 
     try:
-        ret = subprocess.run(['openssl', 'rsa', '-pubout', '-in', priv_key,
+        ret = subprocess.run(['openssl', 'pkey', '-pubout', '-in', priv_key,
                               '-outform', 'DER'],
                              stdout=subprocess.PIPE)
     except FileNotFoundError: