gpt4 book ai didi

java - 无法找到请求的目标 Jmeter 的有效认证路径

转载 作者:行者123 更新时间:2023-12-04 22:41:40 25 4
gpt4 key购买 nike

这个问题在这里已经有了答案:





"PKIX path building failed" and "unable to find valid certification path to requested target"

(48 个回答)


2个月前关闭。




我正在尝试使用 ssl 连接从 Jmeter 连接到极光数据库,但它给出的错误如下:

2022-05-02 18:00:10,693 INFO o.a.j.p.h.p.ProxyControl: HTTP(S) Test Script Recorder SSL Proxy will use keys that support embedded 3rd party resources in file C:\Softwares\apache-jmeter-5.1.1\bin\proxyserver.jks
2022-05-02 18:00:10,699 WARN o.j.r.PluginManagerMenuItem: Failed to load plugin updates info
javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at sun.security.ssl.Alert.createSSLException(Alert.java:131) ~[?:?]
at sun.security.ssl.TransportContext.fatal(TransportContext.java:352) ~[?:?]
at sun.security.ssl.TransportContext.fatal(TransportContext.java:295) ~[?:?]
at sun.security.ssl.TransportContext.fatal(TransportContext.java:290) ~[?:?]
at sun.security.ssl.CertificateMessage$T13CertificateConsumer.checkServerCerts(CertificateMessage.java:1357) ~[?:?]
at sun.security.ssl.CertificateMessage$T13CertificateConsumer.onConsumeCertificate(CertificateMessage.java:1232) ~[?:?]
at sun.security.ssl.CertificateMessage$T13CertificateConsumer.consume(CertificateMessage.java:1175) ~[?:?]
at sun.security.ssl.SSLHandshake.consume(SSLHandshake.java:392) ~[?:?]

2022-05-02 18:00:21,018 INFO o.a.j.u.SSLManager: KeyStore created OK
2022-05-02 18:00:21,102 ERROR o.a.j.u.SSLManager: Problem loading keystore: No key(s) found
java.io.IOException: No key(s) found
at org.apache.jmeter.util.keystore.JmeterKeyStore.load(JmeterKeyStore.java:153) ~[ApacheJMeter_core.jar:5.1.1 r1855137]
at org.apache.jmeter.util.SSLManager.getKeyStore(SSLManager.java:132) [ApacheJMeter_core.jar:5.1.1 r1855137]
at org.apache.jmeter.util.SSLManager.configureKeystore(SSLManager.java:290) [ApacheJMeter_core.jar:5.1.1 r1855137]
at org.apache.jmeter.config.KeystoreConfig.testStarted(KeystoreConfig.java:99) [ApacheJMeter_components.jar:5.1.1 r1855137]
我创建了一个带有根证书的 keystore ,用于连接到极光数据库,它具有该证书,下面是 system.properties 中的配置:
   javax.net.ssl.keyStore=proxyserver.jks
javax.net.ssl.keyStorePassword=storepass
javax.net.ssl.keyStoreProvider=SUN
javax.net.ssl.keyStoreType=PKCS12
请建议我在此缺少什么..

最佳答案

该错误与Aurora DB没有任何关系,大约是JMeter Plugins Manager无法连接到其 default repo addresshttps://jmeter-plugins.org/repo/安全最可能是因为:

  • 您使用公司代理
  • 贵公司使用MITM用于解密和检查进出您机器的 HTTPS 流量的证书

  • 如果您特别希望这个问题消失,您需要更改 jpgc.repo.address JMeter 属性到 http://jmeter-plugins.org/repo/import your company's MITM certificate into a Java truststore并通过 javax.net.ssl.trustStore 指向 JMeter 使用此信任库和 javax.net.ssl.trustStorePassword系统属性。
    更多信息:
  • Configuring JMeter
  • Apache JMeter Properties Customization Guide
  • 关于java - 无法找到请求的目标 Jmeter 的有效认证路径,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/72088114/

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