Service Virtualization

 View Only
  • 1.  Issues while configuring .jks certificate

    Posted Aug 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 'local.properties'.

    #ssl.client.cert.path=
    #ssl.client.cert.pass=
    #ssl.client.key.pass=
    #ssl.client.alias=

    Client, Default and server properties were commented in 'lisa.properties' 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.

    Regards,
    Kopresh


  • 2.  RE: Issues while configuring .jks certificate

    Broadcom Employee
    Posted Aug 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.

    --
    regards
    Sankar Natarajan





  • 3.  RE: Issues while configuring .jks certificate

    Posted Aug 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>>

    Thanks



    ------------------------------
    Regards,
    Vaibhav Jain
    Capgemini
    ------------------------------