As mentioned in the Client app publishing article, if your app needs to be published outside of Apple’s Appstore, or is being resigned on Android for either production or testing purposes, you will need to provide us with the base64 string of the distribution certificate.
Here are the steps to get the base64 string of the distribution certificate:
For iOS
- Open the Keychain Access application.
- Right click on the certificate to use and select Export…
- Select the file format Certificate (.cer) and save the certificate.
- Run the command cat <file> | base64 on the command line (where <file> is the filename of the certificate you just saved).
- Copy the output string of the above command in order to provide it to us.
Alternatively, you can send us the .cer file directly (without the key) and we can do the above for you.
The reason we require this, is to ensure that your app will be fully secured. Our protection mechanisms do not allow ANY tampering done to the final build, including re-signing or application version change. In order for the re-signing to work, we will whitelist your certificate in the build that we we will provide you.
For Android
If the Android app will be resigned for either testing or production purposes, we will need the base64 string of the certificate that will be used for the re-signing.
The certificate can be exported in one of the following manners, depending on how your certificate is stored:
Java Keystore
If your certificate is in a Java Keystore, use the following command to export the certificate:
keytool -keystore filename.jks -storepass password -alias name -exportcert -rfc
Existing APK File
If you have an existing, signed APK, then extract the relevant certificate from the META-INF directory of the APK. The file should have the extension .RSA or .DSA. Then format the certificate using the following OpenSSL command:
openssl pkcs7 -inform DER -text -print_certs -in file.RSA
Google Play Signing
If you are using Google Play signing, then download the app signing key certificate from the Google Play Console, and format it using the following OpenSSL command:
openssl x509 -inform DER -outform PEM -in deployment_cert.der
Comments
0 comments
Please sign in to leave a comment.