kabiroberai / linux-app

An iOS app that can be built on Linux (SwiftTO companion)
MIT License
34 stars 3 forks source link

How do you create the identity.p12 #2

Open Amzd opened 3 months ago

Amzd commented 3 months ago

Really cool project! I managed to build the .app and I thought I could just zip that into an unsigned ipa and install with eg trollstore but that did not work (crash on launch).

How do you create the identity.p12 mentioned in the README on linux?

Amzd commented 3 months ago

Ok so after some experimentation;

  1. Create a CSR
    openssl req -new -newkey rsa:2048 -nodes -keyout development.key -out development.csr
  2. Create a new certificate on developer.apple.com/account using the development.csr file
  3. Download the newly created development.cer from developer.apple.com
  4. Convert to PEM
    openssl x509 -inform DER -outform PEM -in development.cer -out development.pem
  5. Create identity.p12
    openssl pkcs12 -inkey development.key -in development.pem -export -out identity.p12

I can now successfully sign and install but still crash on launch

Amzd commented 3 months ago

Hmm.. I managed to install the unsigned ipa with TrollStore so the building works fine but signed app installed with ideviceinstaller does not launch so I think I am doing something wrong with signing.