Help needed with certificate used to access webpage
Im working on this script wherin I have to grab data from websites trades and stuff. Well theres this one website which requires a certificate that needs to be used to access the webpage. Ive tried a lot of stuff but doesnt work.
The certificate used is an X509 certificate. So ive exported the certificate from wherever and given it a new name. Now ive used this code:
InputStream inStream = new FileInputStream("");
CertificateFactory cf = CertificateFactory.getInstance("X.509");
X509Certificate cert = (X509Certificate)cf.generateCertificate(inStream);
now do i need to addCertificate() or something like that.
Help needed urgently.
Thanks a lot folks.
Have a good one!!