Java System.properties不适用于密钥库和信任库

Java System.properties不适用于密钥库和信任库,java,spring-boot,ssl,spring-security,ssl-certificate,Java,Spring Boot,Ssl,Spring Security,Ssl Certificate,当我在intellij或eclipse中使用vm选项使用truststore和keystore时,我能够正确地进行SSL连接 -Djavax.net.ssl.keyStore=<path>\keystore.jks -Djavax.net.ssl.keyStorePassword=xxxx -Djavax.net.ssl.trustStore=<path>\truststore.jks -Djavax.net.ssl.trustStorePassword=xxxx 我得

当我在intellij或eclipse中使用vm选项使用truststore和keystore时,我能够正确地进行SSL连接

-Djavax.net.ssl.keyStore=<path>\keystore.jks
-Djavax.net.ssl.keyStorePassword=xxxx
-Djavax.net.ssl.trustStore=<path>\truststore.jks
-Djavax.net.ssl.trustStorePassword=xxxx
我得到的错误:

    Caused by: java.net.SocketException: java.security.NoSuchAlgorithmException: Error constructing 
    implementation (algorithm: Default, provider: SunJSSE, class: 
    sun.security.ssl.SSLContextImpl$DefaultSSLContext)
    Caused by: java.security.KeyStoreException: problem accessing trust store
    Caused by: java.io.IOException: Keystore was tampered with, or password was incorrect
    Caused by: java.security.UnrecoverableKeyException: Password verification failed
我有什么遗漏吗?提前谢谢

    Caused by: java.net.SocketException: java.security.NoSuchAlgorithmException: Error constructing 
    implementation (algorithm: Default, provider: SunJSSE, class: 
    sun.security.ssl.SSLContextImpl$DefaultSSLContext)
    Caused by: java.security.KeyStoreException: problem accessing trust store
    Caused by: java.io.IOException: Keystore was tampered with, or password was incorrect
    Caused by: java.security.UnrecoverableKeyException: Password verification failed