ryantenney / passkit4j

Java library for generating Apple Passbook (.pkpass) files

Home Page:http://www.ryantenney.com/passkit4j/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

KeyStore does not contain a PrivateKey

AuraSeguros opened this issue · comments

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.

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.