tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Fulvio LAZ <fulvio...@yahoo.it>
Subject Sequence tag error
Date Mon, 07 Jun 2004 10:36:48 GMT
Hello everybody!

I have problem with importing my certificate into
keystore.


1) keytool -genkey -alias tomcat -keyalg RSA
2) keytool -certreq -keyalg RSA -alias tomcat -file
newreq.pem -keystore /root/.keystore
3) Signed it with my certificate authority.
4) keytool -import -alias root -keystore
/root/.keystore -trustcacerts -file
/etc/grid-security/certificates/33b4aee4.0   (public
key of my C.A.)

when I try to import certificate:
5) keytool -import -alias tomcat -keystore
/root/.keystore -trustcacerts -file newcert.pem

I got this error message:
sun.security.pkcs.ParsingException: Sequence tag error
 at sun.security.pkcs.PKCS7.parse(PKCS7.java:118)
 at sun.security.pkcs.PKCS7.<init>(PKCS7.java:68)
 at
sun.security.provider.X509Factory.parseX509orPKCS7Cert(X509Factory.java:530)
 at
sun.security.provider.X509Factory.engineGenerateCertificates(X509Factory.java:407)
 at
java.security.cert.CertificateFactory.generateCertificates(CertificateFactory.java:511)
 at
sun.security.tools.KeyTool.installReply(KeyTool.java:1193)
 at
sun.security.tools.KeyTool.doCommands(KeyTool.java:504)
 at sun.security.tools.KeyTool.run(KeyTool.java:124)
 at sun.security.tools.KeyTool.main(KeyTool.java:118)
Caused by: java.io.IOException: Sequence tag error
 at
sun.security.util.DerInputStream.getSequence(DerInputStream.java:266)
 at
sun.security.pkcs.ContentInfo.<init>(ContentInfo.java:115)
 at sun.security.pkcs.PKCS7.parse(PKCS7.java:136)
 at sun.security.pkcs.PKCS7.parse(PKCS7.java:115)
 ... 8 more


Thank you very much
Fulvio

P.S. I'm using j2sdk1.4.2


	

	
		
____________________________________________________________
Yahoo! Companion - Scarica gratis la toolbar di Ricerca di Yahoo! 
http://companion.yahoo.it

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message