On Mon, Oct 02, 2006, Eshwaramoorthy Babu wrote:

> Hi,
> I have created a private key using the below command and signed the csr
> >>openssl genrsa -out host.key

> When I try to use the host.key in my server, I am egtting the below error
> -----------------
> caused by: A lifecycle exception was thrown while trying to initialize the
> Tomcat server
> caused by: LifecycleException: Protocol handler initialization failed:
> java.io.IOException: An AXSecurityException was thrown while trying to
> create the server socket on the port [ 8001] with the message:
> iaik.asn1.CodingException: No ASN.1 AlgorithmID type!
> -----------------------------------------
> Looks like the private key is not ASN.1 type.
> Can anyone help me to resolve this issue.

Probably doesn't like OpenSSL private key format. YOu can use various
utilities to convert the default form to other forms. You could try DER format
first then pkcs8 format in PEM and DER format.

Dr Stephen N. Henson. Email, S/MIME and PGP keys: see homepage
OpenSSL project core developer and freelance consultant.
Funding needed! Details on homepage.
Homepage: http://www.drh-consultancy.demon.co.uk
__________________________________________________ ____________________
OpenSSL Project http://www.openssl.org
User Support Mailing List openssl-users@openssl.org
Automated List Manager majordomo@openssl.org