Import digitally signed certificate

I've received a digitally signed certificate back from Thawte. I would like to automate the import of these using the security api. Is there a way to do this?

I can import this using the keytool. I can even automate the process of import using keytool. However, for some odd reason, the when automating import with keytool the import fails half the time. (I know - it makes no sense to me either).

Any sample code would be appreciated, or even a note from someone who has actually done it would be encouraging.

Thanks in advance,

E.Telekeli

[587 byte] By [etelekeli] at [2007-9-26 5:18:44]
# 1

I am currently developing an appli that should automate keytool & jarsigner process.

If interested, just drop me a note.

-- Robert Della Malva

=====

robert@xlreader.com

XL-Reader Project - Secured online documentation solutions

www.xlreader.com

=====

robdella at 2007-6-29 19:23:19 > top of Java-index,Security,Other Security APIs, Tools, and Issues...
# 2

I am attempting to get a certificate imported>

I used keytool -genkey etctetc to create an alias

I created the cert request

We got the cert back

I tried to import and am getting:

keytool error: java.security.cert.CertificateException: Unsupported encoding

The cert is from Thawte

Any help would be appreciated

ca008491 at 2007-6-29 19:23:19 > top of Java-index,Security,Other Security APIs, Tools, and Issues...