What's problem with javax.net.ssl.HttpsUrlConnection
what is problem with following code
import java.io.*;
import java.net.*;
import javax.net.ssl.*;
public class HttpsURL{
public static void main(String[] argv) throws Exception {
URL url = new URL(argv[0]);
HttpsURLConnection connection = (HttpsURLConnection) url.openConnection();
connection.setDoOutput(true);
BufferedReader in = new BufferedReader(
new InputStreamReader(connection.getInputStream()));
String line;
while ((line = in.readLine()) != null) {
System.out.println(line);
}
in.close();
}
}
it returned
Exception in thread "main" javax.net.ssl.SSLHandshakeException: Couldn't find trusted certificate
Please help me, I will be sacked by tomorrow if it's not solved.

