Приложение для iOS: вручную скопируйте файл.mobileprovision в связку ключей без xcode
Я хочу вручную добавить.mobileprovision к доступу цепочки для ключей без использования xCode, потому что я не разрабатывал приложение с xCode. Какие-либо предложения?
1 ответ
Я нашел видео на YouTube от Koto bee, которое очень помогло.
Вам понадобится OpenSSL. Вся необходимая информация находится в этом видео.
Мои личные заметки из этого видео:
Шаг 1: Нужно открыть папку SSL
Шаг 2: Процесс изготовления КЛЮЧЕЙ
https://youtu.be/yCvbbIfMnxI?t=6m
https://youtu.be/yCvbbIfMnxI?t=8m4s
1-й ключ
certificate signing request file (CSR)
open SSL file in COMMAND PROMPT (cmd)
openssl genrsa -out [keyname].key 2048
// optional change [keyname]
(NOTE: if issues locating openssl.cfg type at command prmpt
set OPENSSL_conf-d:\OpenSSL-Win64\bin\openssl.cfg
nothing will show on command prmpt, but continue)
2-й ключ
making the CertificateSigningRequest.certSigningRequest KEY
//// video timestamp around 13:00 //////
openssl req -new -key [keyname].key -out CertificateSigningRequest.certSigningRequest -subj "/emailAddress=yourEmail@whatever.com, CN= companyName, C=US"
C= США о стране происхождения. Так что, возможно, вам придется изменить это, если не США.
ПРИМЕЧАНИЕ: кажется, как только у вас есть ключ от OPENSSL, не нужно делать этот процесс снова. Не позитивно, но пока кажется правдой.
3-й ключ
https://youtu.be/yCvbbIfMnxI?t=14m52s
log into developer.apple.com account
3 steps:
STEP A:
Certificates
there's a DIFFERENCE between DEVELOPMENT & PRODUCTION/DISTRIBUTION
Click the PLUS sign in upper right corner of web page.
You can likely reUPLOAD the SAME key created under name:
CertificateSigningRequest.certSigningRequest
dev site will return "Your certificate is ready" to download
file name will be
ios_distribution.cer for DISTRIBUTION KEY
ios_development.cer for DEVELOPMENT KEY
/// ПРИМЕЧАНИЕ: ТАК ДАЛЕКО ВЫГЛЯДИТЕ, КАК ВЫ МОЖЕТЕ ИСПОЛЬЗОВАТЬ ОДИН ИЗ КЛЮЧЕВЫХ СДЕЛАННЫХ!
Put your .cer file into the OpenSSL bin folder
STEP B:
Make your APP ID via the developer.apple.com site
https://youtu.be/yCvbbIfMnxI?t=16m58s
THIS SECTION appears to need to change per app, especially for DISTRIBUTION
could just use the wildcard key and be done with it for DEVELOPMENT
STEP C: Create .mobileprovision file
(note: this will include your registered devices)
Make an APP ID
click on Identifiers > App IDs >
Explicit App: Dev Prov Profile
App Bundle: id="com.domain.app"
Enabled: Push Notifications (can exclude this line)
Download new .mobileprovision file from developer.apple.com into
D:\OpenSSL-Win64\bin
Make sure latest CertificateSigningRequest.certSigningRequest file in
D:\OpenSSL-Win64\bin
Along with .key file in D:\OpenSSL-Win64\bin
STEP D: Create .pem file
In Command Prompt type:
openssl x509 -in [developer_certificate].cer -inform DER -out -out [app_pem_file].pem -outform PEM ios_distribution.cer ИЛИ ios_development.cer
rename the [app_pem_file].pem file if you like -- make it similar (my thought)
to bundle app ID name or Explicit App name
OR
make it same as the .key name (if recreating & not using a previous one)
this creates the .PEM file
STEP E: Create .p12 file (final task)
In Command Prompt type:
openssl pkcs12 -export -inkey [имя ключа].key -in [app_pem_file].pem -out [app_p12].p12
Как я уже сказал, вся эта информация есть на видео. Вам не нужны мои личные записи, чтобы получить ключ.:)