Skip to main content
replaced http://stackoverflow.com/ with https://stackoverflow.com/
Source Link

The exception is not related to HTTP Basic Authentication, i.e., is not about missing authentication credentials. This also has nothing to do with broken links. This bizzarre exception message is saying that in your truststore you do not have certificate of the Web site you want to connect to, so simply that you do not trust this site.

Now the solution depends on which of your code excerpts we're talking about. For the first you should use HttpsURLConnection instead of HttpURLConnection, because you're trying to connect to SSL-protected URL. Then you should:

For the second code which uses WebDriver it may depend on which library version are usingwhich library version are using. So which one are you using?

The exception is not related to HTTP Basic Authentication, i.e., is not about missing authentication credentials. This also has nothing to do with broken links. This bizzarre exception message is saying that in your truststore you do not have certificate of the Web site you want to connect to, so simply that you do not trust this site.

Now the solution depends on which of your code excerpts we're talking about. For the first you should use HttpsURLConnection instead of HttpURLConnection, because you're trying to connect to SSL-protected URL. Then you should:

For the second code which uses WebDriver it may depend on which library version are using. So which one are you using?

The exception is not related to HTTP Basic Authentication, i.e., is not about missing authentication credentials. This also has nothing to do with broken links. This bizzarre exception message is saying that in your truststore you do not have certificate of the Web site you want to connect to, so simply that you do not trust this site.

Now the solution depends on which of your code excerpts we're talking about. For the first you should use HttpsURLConnection instead of HttpURLConnection, because you're trying to connect to SSL-protected URL. Then you should:

For the second code which uses WebDriver it may depend on which library version are using. So which one are you using?

edited body
Source Link
dzieciou
  • 10.5k
  • 9
  • 48
  • 102

The exception is not related to HTTP Basic Authentication, i.e., is not about missing authentication credentials. This also has nothing to do with broken links. This bizzarre exception message is saying that in your truststore you do not have certificate of the Web site you want to connect to in your truststore, so simply that you do not trust this site.

Now the solution depends on which of your code excerpts we're talking about. For the first you should use HttpsURLConnection instead of HttpURLConnection, because you're trying to connect to SSL-protected URL. Then you should:

For the second code which uses WebDriver it may depend on which library version are using. So which one are you using?

The exception is not related to HTTP Basic Authentication, i.e., is not about missing authentication credentials. This also has nothing to do with broken links. This bizzarre exception message is saying that you do not have certificate of the Web site you want to connect to in your truststore, so simply that you do not trust this site.

Now the solution depends on which of your code excerpts we're talking about. For the first you should use HttpsURLConnection instead of HttpURLConnection, because you're trying to connect to SSL-protected URL. Then you should:

For the second code which uses WebDriver it may depend on which library version are using. So which one are you using?

The exception is not related to HTTP Basic Authentication, i.e., is not about missing authentication credentials. This also has nothing to do with broken links. This bizzarre exception message is saying that in your truststore you do not have certificate of the Web site you want to connect to, so simply that you do not trust this site.

Now the solution depends on which of your code excerpts we're talking about. For the first you should use HttpsURLConnection instead of HttpURLConnection, because you're trying to connect to SSL-protected URL. Then you should:

For the second code which uses WebDriver it may depend on which library version are using. So which one are you using?

Source Link
dzieciou
  • 10.5k
  • 9
  • 48
  • 102

The exception is not related to HTTP Basic Authentication, i.e., is not about missing authentication credentials. This also has nothing to do with broken links. This bizzarre exception message is saying that you do not have certificate of the Web site you want to connect to in your truststore, so simply that you do not trust this site.

Now the solution depends on which of your code excerpts we're talking about. For the first you should use HttpsURLConnection instead of HttpURLConnection, because you're trying to connect to SSL-protected URL. Then you should:

For the second code which uses WebDriver it may depend on which library version are using. So which one are you using?