On 5/11/06, Luc Perthuis <[EMAIL PROTECTED]> wrote:
puneet batura wrote:

>
> Hi,
> I am generating a self signed certificate for my application using rsa
> but i want to generate the certificate using ecc. This is what i am doing:
>
> openssl genrsa -out MilitaryGpsKey.pem 2048
>
> openssl req -new -x509 -key MilitaryGpsKey.pem -out
> MilitaryGpsCert.pem -days 365
>
> now converting the format so tomcat use it:
>
> openssl pkcs12 -export -in MilitaryGpsCert.pem -inkey
> MilitaryGpsKey.pem -out MilitaryGpsCert.p12 -name tomcat
>
>
> i am using openssl-0.9.8a  version.  Please tell me how to generate a
> ecc key

I am using the same version :

openssl version
OpenSSL 0.9.8a 11 Oct 2005

For a list of usable curves, just do :

openssl ecparam -list_curves

When i ry to run the above command i get:
[EMAIL PROTECTED] bin]# openssl ecparam -list_curves
openssl:Error: 'ecparam' is an invalid command.

Why so?
And chose one to pass it to -name parameter as above.

openssl ecparam -genkey -text -name c2pnb163v3
ASN1 OID: c2pnb163v3
-----BEGIN EC PARAMETERS-----
BggqhkjOPQMAAw==
-----END EC PARAMETERS-----
Loading 'screen' into random state - done
-----BEGIN EC PRIVATE KEY-----
(...) [key value]
-----END EC PRIVATE KEY-----

Add -out file_name for ease of use ;-)

The rest of the procedure remains the same ...

>
> Thanks
> --
> Regards,
>
>
> Puneet Batura
> Open Source Developer



--
Regards,
Luc






--
Regards,


Puneet Batura
Open Source Developer

Reply via email to