Before starting you'll need to install OpenSSL
.
-
Generate an RSA key (or use an existing one):
openssl genrsa -out keyname.key 2048
-
Create a certificate signing request (skip all question fields but
Country Name
,Common Name
andEmail Address
).-
openssl req -new -key keyname.key -out CertificateSigningRequest.certSigningRequest
-
Upload it to Apple Developer portal and download the new Certificate.
-
-
Transcode Certificate to PEM format
openssl x509 -in ios_development.cer -inform DER -out ios_development.pem -outform PEM
-
Create p12 from PEM. You must set a password to avoid errors when using it in some CI systems like Bitrise.
openssl pkcs12 -export -inkey keyname.key -in ios_development.pem -out ios_development.p12