Mark,
Interesting !
I just tested with a newly created certificate request (newreq.pem) and it goes fine with 'rsa'command  ! my version is 0.9.7g. Does this an issue with the version ?
If someone knows please let us know...

I also given below the snapshot(edited) ..

-Samy

> CA.pl -newreq

Generating a 1024 bit RSA private key
....................................................++++++
.++++++
writing new private key to 'newreq.pem'
Enter PEM pass phrase:
Verifying - Enter PEM pass phrase:
-----
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [AU]:aa
State or Province Name (full name) [Some-State]:ss
Locality Name (eg, city) []:test
Organization Name (eg, company) [Internet Widgits Pty Ltd]:test
Organizational Unit Name (eg, section) []:test
Common Name (eg, YOUR name) []:test
Email Address []:

Please enter the following 'extra' attributes
to be sent with your certificate request
A challenge password []:
An optional company name []:
Request (and private key) is in newreq.pem


> openssl
OpenSSL> rsa -in newreq.pem -text -noout
Enter pass phrase for newreq.pem:
Private-Key: (1024 bit)
modulus:
    00:b8:65:09:13:3b:45:04:60:2e:64:30:4b:1d:7d:
    ...
publicExponent: 65537 (0x10001)
privateExponent:
    79:65:f3:6a:98:eb:e0:6c:9e:3e:51:d9:32:4a:38:
    ...
    14:dd:3c:e3:6b:d7:a3:51
prime1:
    00:f3:59:22:62:e8:d6:26:e2:40:89:27:7f:f7:97:
    ....
    81:33:e0:3b:6d
prime2:
    00:c1:fb:40:f7:ea:c2:82:f1:7f:b7:7c:d1:ad:48:
    ...
    1f:62:ea:9d:b5
exponent1:
    00:c4:de:eb:ae:d1:67:cf:75:63:78:92:78:38:ba:
    ...
    52:28:c1:d3:d1
exponent2:
    14:be:eb:4e:d8:63:9f:1f:76:da:47:d6:20:e3:24:
    ...
    7c:52:bd:35
coefficient:
    11:05:b1:fb:85:12:66:ae:80:78:67:0e:ff:ef:5c:
    ...
    27:c5:db:9e
OpenSSL> q










"Mark" <[EMAIL PROTECTED]>

Sent by:
[EMAIL PROTECTED]

12.01.2006 11:09

Please respond to
openssl-users@openssl.org

To
openssl-users@openssl.org
cc
Subject
RE: problems using rsa
Classification





Samy,

> even if it is a certificate request, 'rsa' command can handle it.
>
> I think the start line of the key may be corrupted (im not sure )
> u may try to create a new key and test the same.

I may be wrong but the error message made it appear that the command
was expecting a private key.  I have tried the same command with
a few certificate requests and I get the same error. It works with
the corresponding private key file.

Mark.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to