Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion genpkey ignores "-outform DER"
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
"Stephen Henson via RT"  
View profile  
 More options Nov 5 2012, 11:45 am
Newsgroups: mailing.openssl.dev
From: r...@openssl.org ("Stephen Henson via RT")
Date: Mon, 5 Nov 2012 17:44:52 +0100 (CET)
Local: Mon, Nov 5 2012 11:44 am
Subject: [openssl.org #2904] genpkey ignores "-outform DER"

> [vpodz...@redhat.com - Tue Oct 30 17:34:05 2012]:

> Description of problem:
> Running

> $ openssl genpkey -genparam -outform DER -out dh_params.der -algorithm
> DH

> generates data in the PEM format instead of the requested DER format.

> Version-Release number of selected component (if applicable):
> openssl-1.0.0j-2.fc17.i686

> Steps to Reproduce:
> 1. run command from the description
> 2. run 'file dh_params.der'

> Actual results:
> ASCII text

> Expected results:
> data

> Additional info:
> Deprecated (according to openssl(1)) command

> $ openssl dhparam -outform DER -out dh_params.der

> works as expected.

When the pkey utilities (and associated functions) are presented with a
file they have to automatically decide which algorithm to use. This is
fine for public and private key formats which include the algorithm OID
in the associated structures (SubjectPublicKeyInfo or PKCS#8) or the PEM
headers for older private key formats.

In the case of parameters there isn't a DER format that includes the
algorithm type as an OID, just the PEM format where the algorithm to use
is part of the headers.

Steve.
--
Dr Stephen N. Henson. OpenSSL project core developer.
Commercial tech support now available see: http://www.openssl.org

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       openssl-...@openssl.org
Automated List Manager                           majord...@openssl.org


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.