You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Venkatesh N <Ve...@Moviuscorp.com.INVALID> on 2021/11/24 06:45:20 UTC

Unable to convert .p12 to JKS file

Hello Jmeter expertise,

I need to execute API request from Jmeter, which required the .p12 certificate.

In jmeter using the keytool command need to convert the .p12 file into .jks file, but while converting observing error

keytool -importkeystore -srckeystore rnd100_client.p12 -srcstoretype pkcs12 -destkeystore key.jks -deststoretype jks
Importing keystore rnd100_client.p12 to key.jks...
Enter destination keystore password: xxxxxx
Re-enter new password: xxxxxxx
Enter source keystore password: xxxxxx
keytool error: java.io.IOException: keystore password was incorrect


Which is the keystore password, under the system.property file there is no keystore password saved.


Thanks,
Venkatesh. N
[A picture containing object  Description automatically generated]
www.moviuscorp.com

Confidentiality Note: The contents of this e-mail message and any attachments are confidential and are intended solely for addressee. The information may also be legally privileged. This transmission is sent in trust, for the sole purpose of delivery to the intended recipient. If you have received this transmission in error, any use, reproduction or dissemination of this transmission is strictly prohibited. If you are not the intended recipient, please immediately notify the sender by reply e-mail or phone and delete this message and its attachments, if any.

Re: Unable to convert .p12 to JKS file

Posted by Dmitri T <gl...@live.com>.
 1. You don't need to convert the keystore from .p12 to .jks, JMeter can
    read both formats, JMeter tries to guess the format from the file
    extension, but you can also explicitly set it using
    *javax.net.ssl.trustStoreType***system property
    <https://www.ibm.com/docs/en/sdk-java-technology/7?topic=customization-customizing-default-key-trust-stores-store-types-store-passwords>
 2. The error you're getting means that you're failing to supply the
    password
    <https://stackoverflow.com/questions/44830270/keytool-error-java-io-ioexception-keystore-password-was-incorrect>
    *for the original keystore* (rnd100_client.p12) so double check the
    password you're using.

More information: How to Set Your JMeter Load Test to Use Client Side 
Certificates 
<https://www.blazemeter.com/blog/how-set-your-jmeter-load-test-use-client-side-certificates>


On 11/24/2021 7:45 AM, Venkatesh N wrote:
>
> Hello Jmeter expertise,
>
> I need to execute API request from Jmeter, which required the .p12 
> certificate.
>
> In jmeter using the keytool command need to convert the .p12 file into 
> .jks file, but while converting observing error
>
> keytool -importkeystore -srckeystore rnd100_client.p12 -srcstoretype 
> pkcs12 -destkeystore key.jks -deststoretype jks
>
> Importing keystore rnd100_client.p12 to key.jks...
>
> Enter destination keystore password: xxxxxx
>
> Re-enter new password: xxxxxxx
>
> Enter source keystore password: xxxxxx
>
> keytool error: java.io.IOException: keystore password was incorrect
>
> Which is the keystore password, under the system.property file there 
> is no keystore password saved.
>
> Thanks,
>
> Venkatesh. N
>
> A picture containing object Description automatically generated**
>
> www.moviuscorp.com
>
> Confidentiality Note: The contents of this e-mail message and any 
> attachments are confidential and are intended solely for addressee. 
> The information may also be legally privileged. This transmission is 
> sent in trust, for the sole purpose of delivery to the intended 
> recipient. If you have received this transmission in error, any use, 
> reproduction or dissemination of this transmission is strictly 
> prohibited. If you are not the intended recipient, please immediately 
> notify the sender by reply e-mail or phone and delete this message and 
> its attachments, if any.

Re: Unable to convert .p12 to JKS file

Posted by Prateek Dua <pr...@go-mmt.com.INVALID>.
KeyStore Explorer tool<https://keystore-explorer.org/> can be used to identify the certificate type & convert it to required format ( .jks / PKCS12) for JMeter.  Here you can enter the source certificate file and give pwd of your choice to convert it directly .jks format.

This shall solve your problem.



Thanks,
Prateek
________________________________
From: Venkatesh N <Ve...@Moviuscorp.com.INVALID>
Sent: 24 November 2021 12:15
To: user@jmeter.apache.org <us...@jmeter.apache.org>
Subject: Unable to convert .p12 to JKS file


Hello Jmeter expertise,



I need to execute API request from Jmeter, which required the .p12 certificate.



In jmeter using the keytool command need to convert the .p12 file into .jks file, but while converting observing error



keytool -importkeystore -srckeystore rnd100_client.p12 -srcstoretype pkcs12 -destkeystore key.jks -deststoretype jks

Importing keystore rnd100_client.p12 to key.jks...

Enter destination keystore password: xxxxxx

Re-enter new password: xxxxxxx

Enter source keystore password: xxxxxx

keytool error: java.io.IOException: keystore password was incorrect





Which is the keystore password, under the system.property file there is no keystore password saved.





Thanks,

Venkatesh. N

[A picture containing object  Description automatically generated]

www.moviuscorp.com



Confidentiality Note: The contents of this e-mail message and any attachments are confidential and are intended solely for addressee. The information may also be legally privileged. This transmission is sent in trust, for the sole purpose of delivery to the intended recipient. If you have received this transmission in error, any use, reproduction or dissemination of this transmission is strictly prohibited. If you are not the intended recipient, please immediately notify the sender by reply e-mail or phone and delete this message and its attachments, if any.

The contents of this email, including the attachments, are privileged and confidential to the intended recipient at the email address to which it has been addressed. If you receive it in error, please notify the sender immediately by return email and then permanently delete it from your system. The unauthorized use, distribution, copying or alteration of this email, including the attachments, is strictly forbidden. Please note that neither the sender nor the company accepts any responsibility for viruses and it is your responsibility to scan the email and attachments (if any).