inspire-eu-validation / ets-repository

Repository for Executable Test Suites of the INSPIRE validator (under development)
European Union Public License 1.2
13 stars 25 forks source link

ATOM feed in HTTPS (javax.net.ssl.SSLHandshakeException) #86

Open MarieLambois opened 6 years ago

MarieLambois commented 6 years ago

We have trouble testing our feed in HTTPS. When we test the following feed: https://www.geoportail-urbanisme.gouv.fr/atom/download-feed/

It gives the following error: image

However the certificate seems valid.

It works in HTTP.

cportele commented 6 years ago

Yes, the certificate seems to be valid: https://www.sslshopper.com/ssl-checker.html#hostname=https://www.geoportail-urbanisme.gouv.fr/

In the INSPIRE validator I get the error, too. The test run, however, starts fine in an internal deployment that we use for testing. So maybe this has to do with some security setting in the Java VM? Or a firewall?

@michellutz @jonherrmann - any idea how we could diagnose this?

jonherrmann commented 6 years ago

@cportele @michellutz

Note that the certificate expires in 14 days and only supports TLS 1.0 . Is the Server on which the INSPIRE validator runs, configured (Java Trust Manager, etc.) to reject TLS 1.0 certificates?

cportele commented 6 years ago

The validator Java VM also rejects certificates that are valid for 153 days and that support TLS 1.1/1.2.

See http://inspire-sandbox.jrc.ec.europa.eu/etf-webapp//v2/TestRuns/EID5268cac8-1e1c-4f72-b939-32c86edeac53.html?lang=en#EIDda1ba87c-56b9-465b-ad75-79326dfa08ac and https://sslanalyzer.comodoca.com/?url=https%3A%2F%2Fdata.gov.sk%2F

michellutz commented 6 years ago

From @robsgnao :

Ciao, just checked, date and time on the server are ok; no specific configuration has been specified for the Java trust manager (default options). Do we have the same issue with the server on cloud (at interactive instruments)?

Cheers, Roberto

cportele commented 6 years ago

No, we do not see the same issue in our deployment.

Could it be a firewall issue, i.e. no outgoing https connections from the sandbox?

cc: @robsgnao

jonherrmann commented 6 years ago

@robsgnao Another note: yesterday, just after the INSPIRE validator has been restarted, we tested a Test Object with a HTTPS URL and it worked. Today the same Test Object does not work.

klimeto commented 6 years ago

Dear devs,

Is there any update on this issue? I have this service to be tested:

https://zbgisws.skgeodesy.sk/inspire_administrative_units_wfs/service.svc/get?request=GetCapabilities&service=WFS

The validator answers still with the SSLHandshakeexception:

Test Run initialization failure The URL is invalid: 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

Thanks for help, Tomas

michellutz commented 6 years ago

@robsgnao Could you please have a look at this and check whether this is an issue with our deployment (e.g. the JRC firewall...)?

Cheers, m

jonherrmann commented 6 years ago

@Robsgnao @michellutz we do not see this issue in our deployments. There may be additional information in the log file of the web application server.

@klimeto this would be the error message for your WFS 1.1 service: The Test Objekt Type 'OGC Web Feature Service 1.1' is not one of the expected types that can be tested in this test run.

klimeto commented 6 years ago

@jonherrmann yes its true. This is the version 2.0 https://test-zbgisws.skgeodesy.sk/inspire_administrative_units_wfs/service.svc/get?service=wfs&request=getcapabilities

However the JRC instance of the validator still returns the handshake error.

robsgnao commented 6 years ago

As for issue #89, the root certification authority DHIMYOTIS (Certigna Services CA) was not among the trusted CAs in the Oracle JDK; same solution deployed, seems to be working fine now.

robsgnao commented 6 years ago

The SSL-related issue is not present while using OpenJDK instead of Oracle JDK. Validator hosted at JRC has been switched to OpenJDK yesterday.