Code Comments
Programming Forum and web based access to our favorite programming groups.How can I read a certificate into a java application? leo
Post Follow-up to this messageHere is a sample code for reading a certificate file (which is stored in
X509 format).
<code>
FileInputStream is = new FileInputStream("testCertificate.crt") ;
CertificateFactory lFactory = CertificateFactory.getInstance("X.509") ;
Certificate cert = lFactory.generateCertificate(is) ;
</code>
Thanks,
Selva-
selvajavaone@infotekies.net
"leo v" <leov@emailaccount.com> wrote in message
news:d3b1ie$c22$1@news6.zwoll1.ov.home.nl...
> How can I read a certificate into a java application?
>
> leo
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.