Hello Lalit,

> 1. Reading the certificate file and storing the data as a String.
> 2. Then creating ByteArrayInputStream from this String and passing the
> input stream to keystore.load().

Certificate files are binary data and NOT strings. Store
the data in a byte array and don't convert it to string.

By the way, this is a mailing list for HttpClient questions,
not for SSL or PKCS questions.

regards,
  Roland

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to