找不到到请求的目标Jmeter [duplicate]的有效证书路径

6pp0gazn  于 2022-11-09  发布在  其他
关注(0)|答案(1)|浏览(181)

此问题在此处已有答案

"PKIX path building failed" and "unable to find valid certification path to requested target"(51个答案)
6个月前关闭。
我尝试使用SSL连接从Jmeter连接到Aurora数据库,但它在下面给出错误:

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]

我已经创建了一个带有根证书的密钥库,用于连接到aurora数据库,它具有该证书,下面是www.example.com中的配置system.properties:

javax.net.ssl.keyStore=proxyserver.jks
   javax.net.ssl.keyStorePassword=storepass
   javax.net.ssl.keyStoreProvider=SUN
   javax.net.ssl.keyStoreType=PKCS12

请指出我在这方面缺少了什么。

uoifb46i

uoifb46i1#

该错误与Aurora DB无关,它与JMeter Plugins Manager无法安全地连接到其默认存储库地址https://jmeter-plugins.org/repo/有关,最可能的原因是:
1.你是一个公司代理人
1.您的公司使用MITM证书来解密和检查来自/去往您的计算机的HTTPS流量
如果您特别想解决这个问题,您需要将jpgc.repo.address JMeter属性更改为http://jmeter-plugins.org/repo/import your company's MITM certificate into a Java truststore,并通过javax.net.ssl.trustStorejavax.net.ssl.trustStorePassword系统属性指示JMeter使用此信任库。
更多信息:

相关问题