Sorry about the slow reply. There is a command-line utility inside "not-yet-commons-ssl.jar" that will convert a java keystore file into a PEM file that OpenSSL can handle:
----------------- java -cp not-yet-commons-ssl.jar org.apache.commons.ssl.KeyStoreBuilder -topk8 [pass] [file] ----------------- You can download the jar file here: http://juliusdavies.ca/commons-ssl/download.html Perhaps that will be acceptable to you. yours, Julius On Tue, Apr 29, 2008 at 9:13 AM, Luis Ibrahimovic <[EMAIL PROTECTED]> wrote: > Hi, > > I have a problem trying to use a RSA Private Key. > > First of all I have generated using a Java Key Store the cert and the > privKey. > > The parameters that i use are: > > RSA Key Length: 1024 > RSA Algorithm: MD5 with RSA. > > I export each one (Cert and Key) to a file. > > When I use the cert using openssl command line there is no problems. > > When I use the key, I get these erros: > > 2945:error:0D080071:asn1 encoding routines:d2i_ASN1_INTEGER:expecting an > integer:a_int.c:204: > 2945:error:0D09D082:asn1 encoding > routines:d2i_RSAPrivateKey:parsing:d2i_r_pr.c:117: > 2945:error:0D09B00D:asn1 encoding routines:d2i_PrivateKey:ASN1 > lib:d2i_pr.c:89: > 2945:error:0906700D:PEM routines:PEM_ASN1_read_bio:ASN1 lib:pem_lib.c:291: > > Can anyone give me support in this issue? > > Lot's of thanks > Kind Regards > > -- yours, Julius Davies 250-592-2284 (Home) 250-893-4579 (Mobile) http://juliusdavies.ca/ ______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List [email protected] Automated List Manager [EMAIL PROTECTED]
