Have you used any ssl certificates before? For free ones, I recommend 
letsencrypt (https://letsencrypt.org/) - they are quick and free, but:
- They are only valid for 90 days, so you need to rotate (automatically) 
more often.
- They use a acme-challenge process for authentication - you need to 
slightly modify your server to enable this.

edx uses nginx, lentsencrypt offers a tool called certbot to manage certs.

Now, it depends on whether you are installing a new server and want to 
enable ssl from the beginning, in which case there is an ansible playbook 
which should pick up the vars:
NGINX_ENABLE_SSL: true
NGINX_SSL_CERTIFICATE: '/mycert_chain.pem'
NGINX_SSL_KEY: '/mycert_key.pem'

I cannot find the proper documentation for this at the moment, but there 
should be a note somewhere. The configuration scripts/playbooks are here: 
https://github.com/edx/configuration

If you want to change a running server, I recommend to take a look at the 
following two resources:
https://github.com/CDOT-EDX/ProductionStackDocs/wiki/Configuring-SSL-for-NGINX
https://gist.github.com/cecilemuller/a26737699a7e70a7093d4dc115915de8

Where the first one is edx fullstack specific, but the second one has a 
more extensive ssl config.
Note that both are not usable for your case without further modification! 
It's just a reference. The important parts:
- nginx config files: /etc/nginx/sites-enabled/lms 
and /etc/nginx/sites-enabled/cms
- add a ssl listen to your server 
listen   443 ssl;

- provide cert and key 
ssl_certificate /full/path/fullchain.pem;
ssl_certificate_key /full/path/privkey.pem;

- setup your challenge dir and serve it (
location ~ /.well-known {
    allow all;
    root /var/www/letsencrypt;
  }


Process-wise, you need to go backwards - first setup the challenge dir, 
reload nginx, use certbot to get a certificate, then enable it in nginx and 
reload. (You cannot reload the nginx config if there is an error, eg. cert 
file not found. You can always test your config with sudo nginx -t)

Finally, once you have it running, don't forget about the renewal.


On Tuesday, January 23, 2018 at 3:21:49 PM UTC+1, amira reda wrote:
>
> hi,
> please help me am  new in openedx platform  and i want my course page like 
> this page in picture how to do that ?
> enable feature or design?
> thanks for all.
>
>
> <https://lh3.googleusercontent.com/-wdE5sVFPg1c/WmdErP2ugOI/AAAAAAAABj4/PJTYQr1uUaUDU_cVMmloCz8LkKH8IZp3gCLcBGAs/s1600/subsections_student.png>
>

-- 
You received this message because you are subscribed to the Google Groups 
"General Open edX discussion" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/edx-code/ec582cf2-d4f7-425a-8a28-c2861bf802f9%40googlegroups.com.

Reply via email to