How to generate a certificate for students?

Hi @regis! Thank you for replying. Finally, I figure out myself.
I add CERTIFICATES_HTML_VIEW’: true in file lms.env.json and cms.env.json.
More info:4.9. Enabling Course Certificates — Installing, Configuring, and Running the Open edX Platform documentation

By the way, Tutor tool does not enable CERTIFICATES_HTML_VIEW in default. And tutor tool will regenerate the file lms.env.json and cms.env.json every time you run tutor local quickstart.

My solution:
step1: download tutor source code
git clone https://github.com/overhangio/tutor

step2: edit lms.env.json and cms.env.json

step3: install

pip install -e . (python3 is default)
or
pip3 install -e . (python2 is default)

Finally if some one want to enable email, he/she can edit file config.yml


remember to install tutor.
Reference:Setup SMTP Email on Open edX - Blog
Good luck.