Forum Discussion

bnhuser's avatar
bnhuser
New Contributor
5 years ago

Unable to send certificate with Request - Keystore

Hi,

I am unable to successfully send my requests with client certificates.

The exceptions I am getting are -

1. ERROR: org.apache.commons.ssl.ProbablyBadPasswordException: Probably bad JKS-Key password: java.security.UnrecoverableKeyException: Cannot recover key

2. ERROR: java.security.KeyStoreException: Uninitialized keystore

Scenario:

I have received a .crt and .key files (from third party), to be sent along with our requests

 

Postman - Able to successfully send requests with -crt and -key file.

Ready API - Failed.

 

Until now I have tried the following -

1. Converted the .crt-key files to ---> .p12 file (using OpenSSL) ---> .jks file (using Keytool).  No errors, successfully created .jks file

2. Cross - verified if the keystore file can be opened with the password (Yes - correct password) and if the Keystore contains a file within it (Yes)

https://community.smartbear.com/t5/SoapUI-Open-Source/ProbablyBadPasswordException-with-Correct-Password/m-p/26733

3. Tried to set and use the keystore accordingly uising (Failed with above exceptions)

https://www.soapui.org/docs/functional-testing/sending-https-requests.html

 

What am I missing here? Any input would be really appreciated.

 

Thanks!

3 Replies

  • Olga_T's avatar
    Olga_T
    SmartBear Alumni (Retired)

    Hi bnhuser ,

    Thank you for reaching out!

    Do I get it right that you have contacted our Customer Care team with this question? I hope they help you find a solution as soon as possible. And, it would be great if you could share your progress here with the Community.

     

    In the meantime, Community, maybe has anyone faced a similar question? Does anyone have a ready solution?

    Thanks in advance!

     

    • bnhuser's avatar
      bnhuser
      New Contributor

      Hello,

      Yes, I have created a new case for it.

      I still haven't found a solution for this. I'm unable to send the certificates in my requests.

       

      Regards!

      • Olga_T's avatar
        Olga_T
        SmartBear Alumni (Retired)

        Thanks for the update, bnhuser !
        We will be waiting for your further results.