redhat-developer / redhat-developer/vscode-xml

switch off the certificate verification because of SunCertPathBuilderException for private url with untrusted certificate

Open
#1,086 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
328
Forks
101
Avg merge
1d 17h
Merged PRs (30d)
7

Description

I have an own settings.xsd , but the certificate for the url is untrusted. I would like to switch off the certificate verification, because I get the following error.:

Error while downloading 'https://space.url.net/settings.xsd' to '/home/username/.lemminx/cache/https/space.url.net/settings.xsd' : '[sun.security.provider.certpath.SunCertPathBuilderException] unable to find valid certification path to requested target'.xml(DownloadProblem)

This is the xml file.

<?xml version="1.0" encoding="UTF-8" ?>
<settings
    xmlns="http://maven.apache.org/settings/4.0.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/settings/4.0.0 https://space.url.net/settings.xsd"
>

	<mirrors>
		<mirror>
			<id></id>
			<mirrorOf>*</mirrorOf>
			<url></url>
		</mirror>
	</mirrors>

	<servers>
		<server>
			<id></id>
			<username></username>
			<password></password>
		</server>
		<server>
			<id></id>
			<username></username>
			<password></password>
		</server>
	</servers>

	<profiles>
		<profile>
			<id></id>
			<repositories>
				<repository>
					<id></id>
					<url></url>
					<releases>
						<enabled>true</enabled>
					</releases>
					<snapshots>
						<enabled>false</enabled>
					</snapshots>
					<layout>default</layout>
				</repository>
				<repository>
					<id></id>
					<url></url>
					<releases>
						<enabled>false</enabled>
					</releases>
					<snapshots>
						<enabled>true</enabled>
						<updatePolicy>always</updatePolicy>
					</snapshots>
					<layout>default</layout>
				</repository>
			</repositories>
			<pluginRepositories>
				<pluginRepository>
					<id></id>
					<url></url>
					<releases>
						<enabled>true</enabled>
					</releases>
					<snapshots>
						<enabled>false</enabled>
					</snapshots>
					<layout>default</layout>
				</pluginRepository>
				<pluginRepository>
					<id></id>
					<url></url>
					<releases>
						<enabled>false</enabled>
					</releases>
					<snapshots>
						<enabled>true</enabled>
						<updatePolicy>always</updatePolicy>
					</snapshots>
					<layout>default</layout>
				</pluginRepository>
			</pluginRepositories>
		</profile>
	</profiles>

	<activeProfiles>
		<activeProfile></activeProfile>
	</activeProfiles>

	<pluginGroups>
		<pluginGroup></pluginGroup>
	</pluginGroups>

</settings>

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue provides an XML example whose schema download fails for https://space.url.net/settings.xsd with SunCertPathBuilderException. Start by locating the schema-download entry point and any existing certificate configuration; done should include a clearly documented, safely scoped way to handle this private URL and coverage for the reported failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
xml
Domain
security
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.