0

Hello Everyone,

Can you give me some idea on how to connect to an https site which requires user name and password? I would like to download or upload a file to the https using Java. Is this possible?

Any suggestions are greatly appreciated. Looking forward to your replies.

Thanks in Advance

3
Contributors
3
Replies
4
Views
8 Years
Discussion Span
Last Post by jamojo
0

>Can you give me some idea on how to connect to an https site which requires user name and password? I would like to download or upload a file to the https using Java. Is this possible?

Yes it is. Java Secure Socket Extension (JSSE). JSSE enables secure Internet communications.

JSSE provides a framework and an implementation for a Java version of the SSL and TLS protocols.

0

Thanks for your replies.

I read some articles and it shed me a light.

But I would like to know how can apply certificate for SSL. Previously I got this error:

Exception in thread "main" javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

I doing my work remotely then the IT Admin applied the certificate and the code is working now.

How was this certificate applied. I downloaded the InstallCert.java it generated a file but I have not able to apply it.

Thanks in Advance.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.