ryantenney / passkit4j

Java library for generating Apple Passbook (.pkpass) files
http://www.ryantenney.com/passkit4j/
Apache License 2.0
80 stars 50 forks source link

KeyStore does not contain a PrivateKey #51

Closed AuraSeguros closed 3 years ago

AuraSeguros commented 3 years ago

Hi! I'm using your library to generate the pkpass file. In the creation of the object "signer" PassSigner signer = PassSignerImpl I get the following error: KeyStore does not contain a PrivateKey with aliases 'ALIAS'

I have declared the object like this: PassSigner signer = PassSignerImpl .builder() .keystore(new FileInputStream("certificates/com.passbook.p12"),"Password") .alias("ALIAS") .intermediateCertificate(new FileInputStream("certificates/AppleWWDRCA.cer")) .build();

Does anyone know that I may be missing?

Thank you.

AuraSeguros commented 3 years ago

Hi! I'm using your library to generate the pkpass file. In the creation of the object "signer" PassSigner signer = PassSignerImpl I get the following error: KeyStore does not contain a PrivateKey with aliases 'ALIAS'

I have declared the object like this: PassSigner signer = PassSignerImpl .builder() .keystore(new FileInputStream("certificates/com.passbook.p12"),"Password") .alias("ALIAS") .intermediateCertificate(new FileInputStream("certificates/AppleWWDRCA.cer")) .build();

Does anyone know that I may be missing?

Thank you.