Service Virtualization

Expand all | Collapse all

Issues while configuring .jks certificate

  • 1.  Issues while configuring .jks certificate

    Posted 08-12-2020 10:25 AM
    Hi,We were trying to virtualize https request using .jks certificate. Once certificate was loaded in listener step (at client side) and verified with pwd. After verification it was displaying 'unable to load key for alias:cert1 xerox using keystore password'.

    The keystore provided by dev team had alias, keystore, keystore password and alias password. Alias and keystore password are different.
    Dev team provided certificate was placed in 'devtest' folder and following details were set in ''.


    Client, Default and server properties were commented in '' file. Please let us know, what is missed as part of the settings.
    Apart form that also let us know the root cause for the error.

    Revert back for more information.


  • 2.  RE: Issues while configuring .jks certificate

    Broadcom Employee
    Posted 08-12-2020 11:30 AM
    HI Kopresh
                Please make sure the password for the private key and the keystore are same. You can either use java-keytool command or a keystore management utility like Portecle to set same password for your keystore and private key.

    Sankar Natarajan

  • 3.  RE: Issues while configuring .jks certificate

    Posted 08-13-2020 01:01 AM
    Hi Kopresh,

    This error means that alias is for a key entry and its password is not the same used for the keystore.

    You can modify the key/alias password using Keytool usingthe command below:

              keytool.exe -keypassword -alias <<aliasName>> -keystore <<\path\of\the\keystore.file>>


    Vaibhav Jain