Setting up Kaltura CE with HTTPS

For setting up Kaltura CE 9 with HTTPS and above follow the instructions on Kaltura Github

For setting up a different Kaltura CE with HTTPS (CE4/5/6) you should follow the post below.

With a secure web server, users can connect and upload data and videos to your server, knowing that both you are who you claim to be and that their data and videos are secure.
KalturaCE is an open source video platform which comes configured only for HTTP access.
But some scenarios like embedding videos on Facebook require HTTPS support.
This post will guide you through the steps necessary to configure kaltura for HTTPS.

There are several steps to perform:

  1. Create a SSL certificate
  2. Configure apache
  3. Create a new Kaltura virtual host

1. Create an SSL Certificate

For information and instructions on creating a certificate, see this blog post.

2. Configure apache

Enable the apache SSL module

a2enmod ssl

Edit /etc/apache2/ports.conf (on Ubuntu) or /etc/apache2/apache2.conf, add the following lines inside the IfModule mod_ssc.c directive

Listen 443
NameVirtualHost *:443

Edit /etc/apache2/apache2.conf and add

Include /opt/kaltura/package/app/configurations/apache/my_kaltura_https.conf

2. Create a new Kaltura virtual host

Throughout this section we assume your kaltura site’s address is
Make a copy of /opt/kaltura/app/configurations/apache/my_kaltura.conf and name it my_kaltura_https.conf. Change the <VirtualHost *:80> to <VirtualHost *:443> and add the following lines, replace the paths here to the actual location

SSLEngine On
SSLCertificateFile /your/certificate/path/server.crt
SSLCertificateKeyFile /your/certificate/key/path/server.key

Find the following lines by searching for “http” and change the http in the following lines to https

RewriteRule .*
RewriteRule ^$

You can use the attached file, my_kaltura_https for reference. Look for, server.crt and server.key to see which lines you should replace.

Restart apache, and browse to

If you are using a self signed certificate, your browser will probably alert you that the site has insecure content.

Now you can embed videos on facebook, and your users can upload videos securely.


7 thoughts on “Setting up Kaltura CE with HTTPS

  1. Hi Ron, Thanks for this, much needed documentation. I followed your directions with some simple changes for Centos. However when I go to login via kmc, a blank message box appears and when login via admin_console I get application error. Only error being reported in any logs is PHP Warning: SimpleXMLElement::__construct(): in /DDN_Disk/kaltura/app/admin_console/lib/Kaltura/Client/ClientBase.php on line 222, referer:

    This error does not appear in any logs before I made the switch to ssl. Any ideas where or why I might be having issues. Thanks

      1. Hey Michael,

        Can you please send us the errors from the /opt/kaltura/log/admin_console.log, /opt/kaltura/log/kaltura_api_v3.log and

        Also try to check firewall setting.

Leave a Reply

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