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

Why exactly one alias? #21

Closed otaviomacedo closed 9 years ago

otaviomacedo commented 10 years ago

Why does the method PassSigningUtil.firstAlias require exactly one alias? I am trying to generate p12 files, but they are always generated with two aliases.

ryantenney commented 10 years ago

So that there isn't any question about which key/cert is being used. If there are multiple aliases, specify the correct one with alias(String)

ghost commented 9 years ago

I had the same problem. In my case It worked only specifying as alias the name of the key inside the .p12 certificate.

ryantenney commented 9 years ago

There are several options for specifying the alias: alias(String) - if the p12 file contains more than one alias and the privateKey and signingCertificate aliases are the same signingCertificateAlias(String) - specify the signing certificate alias privateKeyAlias(String) - specify the private key alias