How to Import and Setting SSL Apache and Moodle on Debian 7

Posted: August 5, 2015 in Linux

# a2ensite default-ssl

# a2enmod ssl

# service apache2 restart

# vi /etc/apache2/ports.conf

clip_image001

# mkdir /etc/apache2/ssl

Copy certificate to folder SSL

# cp /home/user/Documents/Apache_Cert/wildcard_kbru_co_id.crt /etc/apache2/ssl/

# cp /home/user/Documents/Apache_Cert/wildcard_kbru_co_id.key /etc/apache2/ssl/

clip_image002

Copy certificate with name apache

# cp wildcard_kbru_co_id.crt apache.pem

# cp wildcard_kbru_co_id.key apache.key or

# cp wildcard_kbru_co_id.crt apache.key

# chmod 600 /etc/apache2/ssl/apache.key

Edit SSL

# vi /etc/apache2/sites-enabled/default-ssl

clip_image004

clip_image006

# service apache2 restart

Forcing HTTPS login Moodle

1. Log into the Moodle Dashboard

2. clip_image008

3. Navigate to Site administration > Security > HTTP security in the Settings section.

4. On the HTTP security page, select the Use HTTPS for logins andSecure cookies only check boxes

.clip_image010

Click Save Changes.

clip_image012

Now when going to the Moodle login the site will go to HTTPS instead of HTTP. If the HTTPS is working correctly, the data will transmit securely.

Leave a Reply

Your email address will not be published. Required fields are marked *