You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@jmeter.apache.org by bu...@apache.org on 2013/08/06 16:51:12 UTC

[Bug 55370] New: SSL Manager - Loading keystore fails with password verification for the correct password

https://issues.apache.org/bugzilla/show_bug.cgi?id=55370

            Bug ID: 55370
           Summary: SSL Manager - Loading keystore fails with password
                    verification for the correct password
           Product: JMeter
           Version: 2.9
          Hardware: PC
                OS: Mac OS X 10.4
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HTTP
          Assignee: issues@jmeter.apache.org
          Reporter: ramya.visnu@gmail.com

* Protocol Used : https
* PreConditon: Server Requires Client Certificates 
* SSL Key Store properties are set in the bean shell preprocessor as below: 

   * System.setProperty("javax.net.ssl.keyStore","/Absolute path to the
keystore/sample.jks");
   * System.setProperty("javax.net.ssl.keyStorePassword","password");


* While making a https request am getting the following error in the logs , 

* Errors in the log: 
2013/08/06 14:22:03 INFO  - jmeter.config.KeystoreConfig: Configuring Keystore
with (preload:True, startIndex:0, endIndex:0) 
2013/08/06 14:22:03 INFO  - jmeter.util.SSLManager: JmeterKeyStore Location:
/Absolute path to the keystore/sample.jks type JKS 
2013/08/06 14:22:03 INFO  - jmeter.util.SSLManager: KeyStore created OK 
2013/08/06 14:22:03 ERROR - jmeter.util.SSLManager: Problem loading keystore:
Keystore was tampered with, or password was incorrect java.io.IOException:
Keystore was tampered with, or password was incorrect
    at sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:771)
    at sun.security.provider.JavaKeyStore$JKS.engineLoad(JavaKeyStore.java:38)
    at java.security.KeyStore.load(KeyStore.java:1185)
    at
org.apache.jmeter.util.keystore.JmeterKeyStore.load(JmeterKeyStore.java:66)
    at org.apache.jmeter.util.SSLManager.getKeyStore(SSLManager.java:126)
    at org.apache.jmeter.util.SSLManager.configureKeystore(SSLManager.java:283)
    at
org.apache.jmeter.config.KeystoreConfig.testStarted(KeystoreConfig.java:95)
    at
org.apache.jmeter.config.KeystoreConfig.testStarted(KeystoreConfig.java:62)
    at
org.apache.jmeter.engine.StandardJMeterEngine.notifyTestListenersOfStart(StandardJMeterEngine.java:209)
    at
org.apache.jmeter.engine.StandardJMeterEngine.run(StandardJMeterEngine.java:325)
    at java.lang.Thread.run(Thread.java:680)
Caused by: java.security.UnrecoverableKeyException: Password verification
failed
    at sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:769)
    ... 10 more


* I'm able to successfully load the keystore using the correct password in the
normal command line or using java, It only fails in JMETER.. Why is this
happening ? It is able to find the right keystore but unable to load it because
it thinks the password is incorrect which is not right.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 55370] SSL Manager - Loading keystore fails with password verification for the correct password

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55370

Sebb <se...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |WORKSFORME

--- Comment #1 from Sebb <se...@apache.org> ---
The properties need to be set at startup time.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 55370] SSL Manager - Loading keystore fails with password verification for the correct password

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55370

--- Comment #4 from ramya.visnu@gmail.com ---
Sure Will do , Just got confused with the error message in the logs, since it
was telling me about the wrong password  ...

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 55370] SSL Manager - Loading keystore fails with password verification for the correct password

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55370

--- Comment #3 from Sebb <se...@apache.org> ---
OK.

In future, please subscribe to the JMeter User list and ask there for any such
usage issues.

Bugzilla is not intended as a support forum.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 55370] SSL Manager - Loading keystore fails with password verification for the correct password

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55370

--- Comment #2 from ramya.visnu@gmail.com ---
Thanks very much, I have set the keystore properties in the system.properties
file and it seems to load it fine

-- 
You are receiving this mail because:
You are the assignee for the bug.