# Can't access pkcs12 keystore with keytool

**URL:** <https://forum.payara.fish/t/cant-access-pkcs12-keystore-with-keytool/469>\
**Category:** Technical Discussion\
**Created:** [October 1, 2022, 8:52pm UTC](https://forum.payara.fish/t/cant-access-pkcs12-keystore-with-keytool/469 "2022-10-01T20:52:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cenbe](https://avatars.discourse-cdn.com/v4/letter/c/ea5d25/32.png) [@Cenbe](https://forum.payara.fish/u/Cenbe)\
**Post date:** [October 1, 2022, 8:52pm UTC](https://forum.payara.fish/t/cant-access-pkcs12-keystore-with-keytool/469/1 "2022-10-01T20:52:34Z")

</div>

I’m following Ondro’s tutorial " Securing Payara Server with Custom SSL Certificate". I imported Apache keys to a pkcs12 keystore (using the Payara master password), and I can see the data with “openssl pkcs12 -in lyonlabs.p12 -info -password pass:\*\*\*\*\*\*\*\* -noout”. But when I issue “keytool -list -keystore lyonlabs.p12” and enter the same password, I get “keytool error: java.io.IOException: keystore password was incorrect”.

What am I doing wrong? I tried keytool in both JDK11 and JDK17.
