/
Generate certificates using bash scripting
Generate certificates using bash scripting
This page is out of date
This page is out of date. For the latest instructions, see the edX documentation.
This how-to explain how to use bash scripting to generate certificates.
Step-by-step guide.
You will run bash script to produce certificate.
Run the command in your open edX instance.
$ wget https://raw.githubusercontent.com/ariestiyansyah/OpenX/master/certificate-generate.sh
Run the command below.
$ bash certificate-generate.sh
- Code will give an output to insert course id, enter course id you want to generate, for example edX/edX101/2016_Run1
- Select Y to generate certificate and N to cancel.
- Done.
This is the source code explanation of the steps:
#!/bin/bash # change directory to edx-platform cd /edx/app/edxapp/edx-platform # prompt user, and read command line argument read -p 'Enter course ID: ' idcourse read -p "edXius, Are you sure you want to generate the certificate (Y/N)? " answer # handle the command line argument we were given while true do case $answer in [yY]* ) echo "Okay Darth edXius, Start generating $idcourse " sudo -u www-data /edx/bin/python.edxapp ./manage.py lms --settings production ungenerated_certs -c $idcourse --insecure break;; [nN]* ) exit;; * ) echo "edXius, just enter Y or N, please."; break ;; esac done
Rizky.
, multiple selections available,
Related content
How to Enable On-Demand Certificate Download for Self-Paced Courses
How to Enable On-Demand Certificate Download for Self-Paced Courses
Read with this
[Proposal] Add Extensibility Mechanisms to IDV to Enable Integration of New IDV Vendor Persona
[Proposal] Add Extensibility Mechanisms to IDV to Enable Integration of New IDV Vendor Persona
More like this
Process to Create an Open edX Release
Process to Create an Open edX Release
More like this
Creating and Updating Databases and Database Users
Creating and Updating Databases and Database Users
Read with this
2025-02-24 Educators WG: Educators Docs Updates and Maintenance Onboarding
2025-02-24 Educators WG: Educators Docs Updates and Maintenance Onboarding
More like this
[Proposal] Enabling Common Cartridge Course Archive Imports via the Open edX Import Page
[Proposal] Enabling Common Cartridge Course Archive Imports via the Open edX Import Page
More like this