gpt4 book ai didi

security - Sonatype Nexus - 无法找到请求目标的有效认证路径

转载 作者:行者123 更新时间:2023-12-03 15:18:09 25 4
gpt4 key购买 nike

我正在使用本地 Sonaty Nexus,我在其中代理了几个外部 Maven 存储库。到目前为止,代理只有 http 存储库,但对于某些 Artifact ,我不得不引入 Camunda .使用 Nexus 远程内容浏览器,我可以浏览其内容,但 Nexus 不下载其索引。更重要的是,在 nexus 日志中出现以下错误:

2014-01-08 11:44:27 WARN  [xy-3-thread-218] - org.sonatype.nexus.proxy.maven.maven2.M2Repository - Remote peer of proxy repository "Camunda Secure" [id=camunda.secure] threw a org.sonatype.nexus.proxy.RemoteStorageException exception. Connection/transport problems occured while connecting to remote peer of the repository. - Cause(s): Transport error while executing GET method [repositoryId="camunda.secure", requestPath="/", remoteUrl="https://app.camunda.com/nexus/content/groups/public/"] > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target > PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target > unable to find valid certification path to requested target
2014-01-08 11:44:44 ERROR [tp13549765-1372] - org.sonatype.nexus.proxy.maven.maven2.M2Repository - Got RemoteStorageException in proxy repository "Camunda Secure" [id=camunda.secure] while retrievingremote artifact "ResourceStoreRequest(requestPath="/.meta/repository-metadata.xml")" from URL https://app.camunda.com/nexus/content/groups/public/, this is 1 (re)try, cause: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
2014-01-08 11:44:44 ERROR [tp13549765-1372] - org.sonatype.nexus.proxy.maven.maven2.M2Repository - Got RemoteStorageException in proxy repository "Camunda Secure" [id=camunda.secure] while retrievingremote artifact "ResourceStoreRequest(requestPath="/.meta/repository-metadata.xml")" from URL https://app.camunda.com/nexus/content/groups/public/, this is 2 (re)try, cause: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
2014-01-08 11:44:44 ERROR [tp13549765-1372] - org.sonatype.nexus.proxy.maven.maven2.M2Repository - Got RemoteStorageException in proxy repository "Camunda Secure" [id=camunda.secure] while retrievingremote artifact "ResourceStoreRequest(requestPath="/.meta/repository-metadata.xml")" from URL https://app.camunda.com/nexus/content/groups/public/, this is 3 (re)try, cause: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
2014-01-08 11:44:44 WARN [tp13549765-1372] - org.sonatype.nexus.proxy.maven.maven2.M2Repository - Remote peer of proxy repository "Camunda Secure" [id=camunda.secure] threw a org.sonatype.nexus.proxy.RemoteStorageException exception. Connection/transport problems occured while connecting to remote peer of the repository. - Cause(s): Transport error while executing GET method [repositoryId="camunda.secure", requestPath="/.meta/repository-metadata.xml", remoteUrl="https://app.camunda.com/nexus/content/groups/public/.meta/repository-metadata.xml"] > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target > PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target > unable to find valid certification path to requested target

我应该怎么做才能下载它的索引并在我的 Maven 项目中引用这些 Artifact ?

SK

最佳答案

这里的底线:-

您的 Maven 无法在 keystore 中找到它尝试连接的服务器的证书,例如 foo.domain.com。

解决步骤

1) 确定您的 Maven 正在使用的 keystore - 这非常重要。因为您可能会不断将证书添加到 keystore ,而不是添加到 Maven 寻找的

这里的提示:-

a) 如果不涉及特定配置,则应查看 JAVA_HOME 中的默认 JDK keystore - caccerts

b) 如果您在/Users/username/下配置了 .mavnerc ,
这将覆盖默认设置。所以一定要看看这里,知道它指向哪里

2) 下载证书并使用 keytool 命令导入到正确的 keystore

keytool -import -alias alias_name -file certificate_name -keystore keystorelocation

关于security - Sonatype Nexus - 无法找到请求目标的有效认证路径,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20994974/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com