﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
11137	Connecting with WMS using self-signed certificate	anonymous	team	"==== What steps will reproduce the problem?
1. Add wms with self-signed/not verified (?) certificate

==== What happens instead?
First problem: WMS don't working, red tiles.
Second problem: Error when got 302 redirect

http://emuia.gugik.gov.pl:80/
redirecting 302 to
https://emuia.gugik.gov.pl/

'''1.''' wms:http://emuia.gugik.gov.pl:80/wmsproxy/emuia/wms?SERVICE=WMS&FORMAT=image/png&TRANSPARENT=TRUE&VERSION=1.1.1&SERVICE=WMS&REQUEST=GetMap&LAYERS=emuia:layer_miejscowosci_granica&STYLES=&SRS={proj}&WIDTH={width}&HEIGHT={height}&BBOX={bbox}
{{{
Last errors/warnings:
- E: java.io.IOException: . Przyczyna: org.xml.sax.SAXParseException: Premature end of file.
- E: java.io.IOException: . Przyczyna: org.xml.sax.SAXParseException: Premature end of file.
- E: java.io.IOException: . Przyczyna: org.xml.sax.SAXParseException: Premature end of file.
- E: java.io.IOException: . Przyczyna: org.xml.sax.SAXParseException: Premature end of file.
- E: java.io.IOException: . Przyczyna: org.xml.sax.SAXParseException: Premature end of file.
}}}

'''2.''' wms:https://emuia.gugik.gov.pl/wmsproxy/emuia/wms?SERVICE=WMS&FORMAT=image/png&TRANSPARENT=TRUE&VERSION=1.1.1&SERVICE=WMS&REQUEST=GetMap&LAYERS=emuia:layer_miejscowosci_granica&STYLES=&SRS={proj}&WIDTH={width}&HEIGHT={height}&BBOX={bbox}
{{{
Last errors/warnings:
- E: 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. Przyczyna: 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. Przyczyna: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target. Przyczyna: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
- E: java.io.IOException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
- E: 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. Przyczyna: 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. Przyczyna: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target. Przyczyna: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
- E: 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. Przyczyna: 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. Przyczyna: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target. Przyczyna: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
- E: 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. Przyczyna: 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. Przyczyna: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target. Przyczyna: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
}}}

'''1.''' wms_endpoint:http://emuia.gugik.gov.pl:80/
{{{
Last errors/warnings:
- E: java.io.IOException: . Przyczyna: org.xml.sax.SAXParseException: Premature end of file.
- E: Could not parse WMS layer list. Incoming data:
}}}

'''2.''' wms_endpoint:https://emuia.gugik.gov.pl/
Only show message ""cannot download layers list"" and in terminal:
{{{
INFO: GET https://emuia.gugik.gov.pl/wmsproxy/emuia/wms?VERSION=1.1.1&SERVICE=WMS&REQUEST=GetCapabilities
}}}

When I add SSL key to cacerts keystore then first problem not exist, but it is too hard for newbies.

{{{
Repository Root: http://josm.openstreetmap.de/svn
Build-Date: 2015-02-18 12:05:51
Last Changed Author: Don-vip
Revision: 8081
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Relative URL: ^/trunk
URL: http://josm.openstreetmap.de/svn/trunk
Last Changed Date: 2015-02-17 23:11:29 +0100 (Tue, 17 Feb 2015)
Last Changed Rev: 8081

Identification: JOSM/1.5 (8081 pl) Linux Ubuntu 14.04.2 LTS
Memory Usage: 296 MB / 869 MB (149 MB allocated, but free)
Java version: 1.7.0_75, Oracle Corporation, OpenJDK 64-Bit Server VM
Java package: openjdk-7-jre:amd64-7u75-2.5.4-1~trusty1
Dataset consistency test: No problems found

Plugins:
- CADTools (1003)
- InfoMode (30892)
- OpeningHoursEditor (30962)
- PicLayer (30962)
- editgpx (30892)
- photo_geotagging (30967)
- photoadjust (30964)
- reverter (30990)
- tag2link (30962)
}}}"	enhancement	closed	normal		Core imagery	latest	wontfix	template_report, wms, ssl	
