John Saylor schrieb:
> 
> Hi
> 
> As part of a job I have, I need to take unsigned PKCS10s [why bother?]
> and extract the dn and public key from them. I looked at the openssl
> req command, which gives me some interesting things with the -text
> switch, but not quite what I need.
> 
> Is there anyway with openssl to extract the public key [in hex?] from
> a PKCS10?  This must be somewhere in the signing code, I'd guess, but
> I'm not too sure where to look.
> 
> Any suggestions, comments, or pointers welcome.

You can try the -modulus switch of req for the modulus.
The public exponent (which is most likely 2^16+1) you can
grab from the -text output. Not as convinient as you would
like, but it should work.

-- 
Holger Reif                  Tel.: +49 361 74707-0
SmartRing GmbH               Fax.: +49 361 7470720
Europaplatz 5             [EMAIL PROTECTED]
D-99091 Erfurt                    WWW.SmartRing.de
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to