Skip to content

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

Description

@BuZZ-dEE

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>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions