我正在尝试从我的 linux VM 运行测试,并且在与 Solace Broker 建立 SSL 连接时遇到了以下错误。
javax.naming.NamingException:无法加载信任存储:/var/tmp/jre1.8.0_281/lib/security/cacerts - 由 java.io.FileNotFoundException 引起 - /var/tmp/jre1.8.0_281/lib/security/ cacerts(是一个目录)[根异常是 com.solacesystems.jcsmp.InvalidPropertiesException:无法加载信任库:/var/tmp/jre1.8.0_281/lib/security/cacerts]
我在 system.properties 中运行具有以下配置的脚本
java.naming.factory.initial = com.solacesystems.jndi.SolJNDIInitialContextFactory
java.naming.provider.url = tcps://username:password@hostname
Solace_JMS_VPN = QA
Solace_JMS_Authentication_Scheme = AUTHENTICATION_SCHEME_CLIENT_CERTIFICATE
Solace_JMS_SSL_KeyStore = var/tmp/kestore.jks
Solace_JMS_SSL_KeyStorePassword = pwd
Solace_JMS_SSL_TrustStore = /var/tmp/certs/truststore.jks
Solace_JMS_SSL_TrustStorePassword = pwd
Solace_JMS_JNDI_ConnectRetries = 1
Solace_JMS_JNDI_ClientDescription = PnV_Jmeter