All Products
Search
Document Center

Configure offline packages

Last Updated: Mar 24, 2021

You can upload and release offline packages on the MDS platform, so that offline packages can be quickly pushed to the client. For detailed information about offline packages, please refer to offline package overview.

Before creating an offline package, you must add relevant configurations of the offline package on the Manage configuration page.

Procedure

Log in to the mPaaS console, and complete the following steps:

  1. From the navigation bar on the left, click Mobile Delivery Service > Offline package management.
  2. On the offline package list page, click the Manage configuration tab.
  3. In the Manage domain section, enter the virtual domain name, for example h5app.com.
    Note:
    • To normalize the address of local offline package files, when the client loads these files, the client binds these files with a virtual domain name as suffix.
    • The virtual domain name cannot be the second-level or third-level domain name that starts with http or https.
  4. Check I confirm the above information is accurate, and submit without any further change., and then click Save.
  5. In the Manage keys section, upload the key file.

    Note:
    • If the signature verification is closed after the client receives the offline packages, you don’t have to upload the key file here.
    • The file uploaded here is the RSA private key generated with OpenSSL, which is used to sign the offline packages and implement signature verification with the corresponding public key on the client. You can generate private and public key files with the following methods:
    1. Generate private key:
    2. openssl genrsa -out private_key.pem 2048
    3. Generate public key:
    4. openssl rsa -in private_key.pem -outform PEM -pubout -out public.pem
  6. Check I confirm the above information is accurate, and submit without any further change., and then click Upload. Offline package configuration is completed.

What to do next