mirror of
https://github.com/marcogll/passkit-generator.git
synced 2026-03-15 13:25:19 +00:00
Minor changes to READMEs and core
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
<div align="center">
|
<div align="center">
|
||||||
<br>
|
<br>
|
||||||
<br>
|
<br>
|
||||||
<img width="600" src="assets/logo.svg" alt="Node Passkit Generator logo">
|
<img width="600" src="assets/logo.svg?sanitize=true" alt="Node Passkit Generator logo">
|
||||||
<br>
|
<br>
|
||||||
<br>
|
<br>
|
||||||
<p align="center">Simple Node.js interface to generate customized <a href="https://developer.apple.com/wallet/">Apple Wallet Passes</a> for iOS.</p>
|
<p align="center">Simple Node.js interface to generate customized <a href="https://developer.apple.com/wallet/">Apple Wallet Passes</a> for iOS.</p>
|
||||||
|
|||||||
@@ -88,6 +88,6 @@ But let's not talk anymore about testing and let's go with the steps to follow.
|
|||||||
$ openssl rsa -in <your-key-name>.key -outform PEM -out passkey.pem
|
$ openssl rsa -in <your-key-name>.key -outform PEM -out passkey.pem
|
||||||
```
|
```
|
||||||
|
|
||||||
12. Execute Step 10 also for `AppleWWDRCA.cer` you've download from [Apple PKI](https://www.apple.com/certificateauthority/) and save it somewhere (over the rainbow... 🌈).
|
12. Execute Step 9 also for `AppleWWDRCA.cer` you've download from [Apple PKI](https://www.apple.com/certificateauthority/) and save it somewhere (over the rainbow... 🌈).
|
||||||
|
|
||||||
13. And you are done. 🎉 Now try to create your first pass! My suggestion is to keep anyway the `.key` file somewhere as backup (this time not over the rainbow). You can always download `.cer` file from APP, but you cannot generate back your private key.
|
13. And you are done. 🎉 Now try to create your first pass! My suggestion is to keep anyway the `.key` file somewhere as backup (this time not over the rainbow). You can always download `.cer` file from APP, but you cannot generate back your private key.
|
||||||
|
|||||||
@@ -721,10 +721,12 @@ class Pass {
|
|||||||
});
|
});
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
if (!err.path) {
|
if (!err.path) {
|
||||||
|
// Catching error from '.then()';
|
||||||
|
console.log("Got an error");
|
||||||
throw err;
|
throw err;
|
||||||
} else {
|
|
||||||
throw new Error(formatError("INVALID_CERT_PATH", path.parse(err.path).base));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
throw new Error(formatError("INVALID_CERT_PATH", path.parse(err.path).base));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user