September 5, 2020

Enable Certificate Open edX

Organizations and course teams can choose to generate certificates for learners who pass a course. Learners can view, print, or share their certificates.

To enable certificates, you modify the lms.env.json and cms.env.json files.

  1. In the lms.env.json and cms.env.json files, set the value of CERTIFICATES_HTML_VIEW within the FEATURES object to true.
"FEATURES": {
    ...
    'CERTIFICATES_HTML_VIEW': true,
    ...
}

Save the lms.env.json and cms.env.json files.

  1. If it does not exist already, create the folder /tmp/certificates owned by the user and group www-data.
$ mkdir /tmp/certificates
  1. Access the LMS Django Administration website for your instance of Open edX. To do this, go to https://<host name of your Open edX instance>/admin.

  2. Under Site Administration > Certificates, add an HTML View Configuration, and select Enabled.

For Configuration, set the following certificates-related parameters for your Open edX instance.

  • platform_name
  • company_about_url
  • company_privacy_url
  • company_tos_url
  • company_verified_certificate_url
  • logo_src
  • logo_url

For each course mode for which you want to offer certificates (such as “honor” or “verified”), define these parameters.

  • certificate_type
  • certificate_title
  • document_body_class_append

Example content for Configuration field.

{
    "default": {
        "accomplishment_class_append": "accomplishment-certificate",
        "platform_name": "YourPlatformName",
        "company_about_url":"http://www.YourOrganization.com/about-us",
        "company_privacy_url": "http://www.YourOrganization.com/our-privacy-policy",
        "company_tos_url": "http://www.YourOrganization.com/our-terms-service",
        "company_verified_certificate_url": "http://www.YourOrganization.com/about_verified_certificates",
        "logo_src": "/static/certificates/images/our_logo.svg",
        "logo_url": "www.YourOrganization.com"
    },
    "honor": {
        "certificate_type": "honor",
        "certificate_title": "Honor Certificate",
        "document_body_class_append": "is-honorcode"
    },
    "verified": {
        "certificate_type": "verified",
        "certificate_title": "Verified Certificate",
        "document_body_class_append": "is-idverified"
    },
    "base": {
        "certificate_type": "base",
        "certificate_title": "Certificate of Achievement",
        "document_body_class_append": "is-base"
    },
    "distinguished": {
        "certificate_type": "distinguished",
        "certificate_title": "Distinguished Certificate of Achievement",
        "document_body_class_append": "is-distinguished"
    }
}

and then click Save.

  1. Restart lms and cms.

  2. Access the LMS Django Administration website for your instance of Open edX. To do this, go to https://<host name of your Open edX instance>/admin.

  3. Under Site Administration > Certificates > Certificate generation configurations, add an certificate generation if configuration not exist, and select Enabled, then click save.

  4. Under Site Administration > Course mode > Course modes, add an course mode, and then click save.

  5. Configure certificate in studio page. You’ll find this under Settings.

Linux, Unix, BSD, MacOS, Komunitas Pengguna Linux Indonesia, KPLI Klaten, KPLI Bulukumba, MikroTik, MikroTik Indonesia, FreeBSD, FreeBSD Indonesia, Cisco, Cisco Indonesia, BLC Telkom Klaten, Ansible, Nginx, Apache2, Caddy Server, Ayo Belajar Linux, Cloud Computing, e-Learning, Open edX, Proxmox, Sendy, Microsoft SQL Server, MySQL, PostgreSQL, Lets Encrypt, Case Study, Atlassian, Virtualization, Faizar Septiawan, Icar, siBunglonGanteng, siBunglonLabs, Orang Ganteng

Create a new section, enter all the information, click save, and click activate.

References