Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save ajithrn/f19b4aae6dafe79bb5bde6c10b0bca2f to your computer and use it in GitHub Desktop.

Select an option

Save ajithrn/f19b4aae6dafe79bb5bde6c10b0bca2f to your computer and use it in GitHub Desktop.

Revisions

  1. ajithrn revised this gist Jul 26, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Making Apple Push Notification certificates on Linux
    Original file line number Diff line number Diff line change
    @@ -27,4 +27,4 @@
    8. Convert the .pem to a .p12:
    openssl pkcs12 -export -inkey aps.key -in aps.pem -out aps.p12

    9. You can now create a "Provisioning Profile" in the "Member Center" on developer.apple.com using the certificate you made in step 4
    9. You can now use the aps certificate on OneSignal or any other similar platforms.
  2. ajithrn revised this gist Jul 26, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Making Apple Push Notification certificates on Linux
    Original file line number Diff line number Diff line change
    @@ -25,6 +25,6 @@
    openssl x509 -in aps.cer -inform DER -out aps.pem -outform PEM

    8. Convert the .pem to a .p12:
    openssl pkcs12 -export -inkey aps.key -in aps.pem -out ios_enterprise.p12
    openssl pkcs12 -export -inkey aps.key -in aps.pem -out aps.p12

    9. You can now create a "Provisioning Profile" in the "Member Center" on developer.apple.com using the certificate you made in step 4
  3. ajithrn revised this gist Jul 26, 2019. No changes.
  4. ajithrn renamed this gist Jul 26, 2019. 1 changed file with 4 additions and 4 deletions.
    Original file line number Diff line number Diff line change
    @@ -3,7 +3,7 @@
    cd Apple\ Enterprise

    2. Generate a certificate signing request
    openssl req -nodes -newkey rsa:2048 -keyout ios_enterprise.key -out CertificateSigningRequest.certSigningRequest
    openssl req -nodes -newkey rsa:2048 -keyout aps.key -out CertificateSigningRequest.certSigningRequest

    3. With the information like so (ensure you give it a password):
    Country Name (2 letter code) [AU]:GB
    @@ -15,16 +15,16 @@
    Email Address []:

    4. Login to developer.apple.com, go to:
    "Member Center" -> "Manage your certificates, App IDs, devices, and provisioning profiles." -> "Certificates" -> "Add"
    "Member Center" -> "Certificates, Identifiers & Profiles > Identifiers > Select App IDs, Scroll down select "Add/Edit" button Besides Push Notification

    5. Go through the wizard, selecting the certificate type, and uploading the .csr.

    6. Download the .cer file, saving it to the folder created in step 1

    7. Convert the .cer file to a .pem file:
    openssl x509 -in ios_enterprise.cer -inform DER -out ios_enterprise.pem -outform PEM
    openssl x509 -in aps.cer -inform DER -out aps.pem -outform PEM

    8. Convert the .pem to a .p12:
    openssl pkcs12 -export -inkey ios_enterprise.key -in ios_enterprise.pem -out ios_enterprise.p12
    openssl pkcs12 -export -inkey aps.key -in aps.pem -out ios_enterprise.p12

    9. You can now create a "Provisioning Profile" in the "Member Center" on developer.apple.com using the certificate you made in step 4
  5. @boodle boodle revised this gist Jul 6, 2015. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions Making Apple Developer certificates on Linux
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    1. Create a new directory;
    mkdir Apple\ Enterprise; cd Apple\ Enterprise
    cd Apple\ Enterprise; cd Apple\ Enterprise
    mkdir Apple\ Enterprise
    cd Apple\ Enterprise

    2. Generate a certificate signing request
    openssl req -nodes -newkey rsa:2048 -keyout ios_enterprise.key -out CertificateSigningRequest.certSigningRequest
  6. @boodle boodle created this gist Oct 3, 2014.
    30 changes: 30 additions & 0 deletions Making Apple Developer certificates on Linux
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,30 @@
    1. Create a new directory;
    mkdir Apple\ Enterprise; cd Apple\ Enterprise
    cd Apple\ Enterprise; cd Apple\ Enterprise

    2. Generate a certificate signing request
    openssl req -nodes -newkey rsa:2048 -keyout ios_enterprise.key -out CertificateSigningRequest.certSigningRequest

    3. With the information like so (ensure you give it a password):
    Country Name (2 letter code) [AU]:GB
    State or Province Name (full name) [Some-State]:London
    Locality Name (eg, city) []:
    Organization Name (eg, company) [Internet Widgits Pty Ltd]:Total Onion Ltd
    Organizational Unit Name (eg, section) []:
    Common Name (e.g. server FQDN or YOUR name) []:Total Onion Enterprise
    Email Address []:

    4. Login to developer.apple.com, go to:
    "Member Center" -> "Manage your certificates, App IDs, devices, and provisioning profiles." -> "Certificates" -> "Add"

    5. Go through the wizard, selecting the certificate type, and uploading the .csr.

    6. Download the .cer file, saving it to the folder created in step 1

    7. Convert the .cer file to a .pem file:
    openssl x509 -in ios_enterprise.cer -inform DER -out ios_enterprise.pem -outform PEM

    8. Convert the .pem to a .p12:
    openssl pkcs12 -export -inkey ios_enterprise.key -in ios_enterprise.pem -out ios_enterprise.p12

    9. You can now create a "Provisioning Profile" in the "Member Center" on developer.apple.com using the certificate you made in step 4