Skip to content

Test Page 3

rohitphogat19 edited this page Jul 19, 2020 · 1 revision

id: ios-call-sdk-voip-certificate-configuration title: Voip Certificate Configuration sidebar_label: Voip Certificate Configuration

Generating a certificate request file

First, you need to create a Certificate Signing Request (CSR) file for creating a VoIP certificate.

  1. Launch Keychain Access. After that Certificate Assistant >> Request a certificate from Certificate Authority...

  1. Enter your Apple developer account email address in User Email Address field, Account Holder name in Common Name. Leave CA Email address blank and choose the "Saved to Disk" option.

Configuring your App ID in Apple Developer Portal

  1. Sign in to your Apple Developer account.
  2. Go to the Certificates, ids, and profiles section.
  3. Select the Certificates tab.
  4. Click on create new certificates button.
  5. Select "VoIP Services Certificate" and click on continue.

  1. Select your app id from the drop-down list and click on continue.
  2. Choose the Certificate Signing Request you created previously and click on Continue.

  1. Download the newly created certificate and double click on it to launch Keychain Access.

Exporting your Private Key

  1. First, create a new folder on Desktop and name it accordingly.
  2. Copy the downloaded Certificate in this folder.
  3. In Keychain Access, select the certificate you just added and right-click on it and choose option Export "VoIP Services: your_app_identifier".

  1. Save it to the newly created folder in Step 1.
  2. It will ask for the password for the exported private key. Make sure you remember the password as it will be required in a later stage.
  3. Go to the newly created Folder. It will have two files i.e. voip_services.cer and Certificates.p12.
  4. Now open the terminal and navigate to this folder and run below three commands.
openssl x509 -inform der -in voip_services.cer -out initialCert.pem
openssl pkcs12 -nocerts -in Certificate.p12 -out p12Key.pem
cat initialCert.pem p12Key.pem > voipMain.pem

Note: In the second command it will ask for the password multiple times, you entered when exporting private key mentioned in step 3. Enter the same password.

Uploading .pem Files in Channelize Dashboard

  1. Go to your Channelize Account Dashboard.
  2. Select the Feature-Addons tab from the left pane.
  3. Click on the edit button on Voice & Video calls row. It will show a pop-up window.
  4. For VoIP Certificate PEM File, upload voipMain.pem file.
  5. For VoIP Key PEM File, upload p12Key.pem file.
  6. For Passphrase for key.pem file input box enter the password you entered during exporting private key.
  7. For APNs type, please select Development for Debug mode and Production for release mode.
  8. For the App Bundle Id input box, enter your app's identifier appended by .voip. For e.g. if your app identifier is com.demo.app then please enter com.demo.app.voip
  9. Click on the Save button.