... | ... | @@ -135,6 +135,52 @@ You have created in your own machine this files: |
|
|
- `ios_distribution.cer`, your Apple certificate
|
|
|
- `.mobileprovision`, one of the most important files so that you can indeed embed this in your app to distribute
|
|
|
|
|
|
Finishing the basis to compile to iOS with TotalCross
|
|
|
----------------
|
|
|
|
|
|
So far, so good. Now we need to create a Publc-Key Cryptography Standard 12 `.p12` file. To create it, we need the intermediary container for public key `.pem` file.
|
|
|
|
|
|
> [This question](https://serverfault.com/q/9708) in ServerFault gives you more details about the files format. Also it was where I got that information above.
|
|
|
|
|
|
To create the `.pem` file, just give this command:
|
|
|
|
|
|
```
|
|
|
openssl x509 -in ios_distribution.cer -inform DER -out ios_distribution.pem -outform PEM
|
|
|
```
|
|
|
|
|
|
Where:
|
|
|
|
|
|
- `x509`
|
|
|
is the cryptography standard
|
|
|
- `-in ios_distribution.cer`
|
|
|
indicates that the input certificate file is named `ios_distribution.cer`
|
|
|
- `-inform DER`
|
|
|
indicates that the format of the input file is `DER`, so that OpenSSL can do its conversion
|
|
|
AKA _translate from `DER`_
|
|
|
- `-out ios_distribution.pem`
|
|
|
indicates that the output file name is named `ios_distribution.pem`
|
|
|
- `-outform PEM`
|
|
|
indicates that the output format is `PEM`
|
|
|
AKA _translate to `PEM`_
|
|
|
|
|
|
With the `.pem` file created, we just need to create the `.p12` file:
|
|
|
|
|
|
```
|
|
|
openssl pkcs12 -export -inkey request.key -in ios_distribution.pem -out ios_distribution.p12
|
|
|
```
|
|
|
|
|
|
Where:
|
|
|
|
|
|
- `pkcs12`
|
|
|
is the cryptography standard
|
|
|
- `-export`
|
|
|
- `-inkey request.key`
|
|
|
which file is the private key? It is `request.key`
|
|
|
- `-in ios_distribution.pem`
|
|
|
which file is the container for your certificate? `ios_distribution.pem`
|
|
|
- `-out ios_distribution.p12`
|
|
|
which file I want to save as my PKCS 12 file? `ios_distribution.p12`
|
|
|
|
|
|
**WIP**
|
|
|
|
|
|
iOS deployments
|
... | ... | |