Search 72 posts

Adding a SSL Certificate to Untangle Firewall

Untangle SSL not working? A small hack here for those that might be struggling adding a third party signed certificate to their Untangle firewall.

Karl NyenGuides1 min readFrom the archive
Illustration of HTTP changing to HTTPS with an SSL shield and locked padlock

Untangle SSL not working? A small hack here for those that might be struggling adding a third party signed certificate to their Untangle firewall.

Using self-signed certificates isn’t a problem. However when you try to add a trusted third party certificate to Untangle using the GUI it doesn’t work.

The GUI doesn’t seem to add the intermediate SSL certificate to the chain which causes the certificate to be broken and sometimes even a very broken Apache.

The official documentation on the matter suggests it should be possible by the GUI. But it’s not ideal.

The workaround is to manually package your SSL certificate into a apache.pem file.

The file will simply contain the following in plain-text back to back, in this order:

  1. Certificate
  2. Private Key
  3. Intermediate
  4. Root (optional)
-----BEGIN CERTIFICATE-----
 [server cert]
 -----END CERTIFICATE-----
 -----BEGIN PRIVATE KEY-----
 [private key]
 -----END PRIVATE KEY-----
 -----BEGIN CERTIFICATE-----
 [intermediate]
 -----END CERTIFICATE-----
 -----BEGIN CERTIFICATE-----
 [root cert]
 -----END CERTIFICATE-----
text

Now SSH to your Untangle server and then:

cd /etc/apache2/ssl
cp apache.pem apache.pem.bak
vi apache.pem
Copy/paste your cert, key and intermediate certificates to this file
Then ":wq!" to save changes
/etc/init.d/apache2 restart
bash

Your SSL certificate should now be installed! Verify using your browser.

Broken SSL on Untangle?

If your Untangle web GUI stops working after installing the certificate then something went wrong. The GUI will be inaccessible giving a ERR_CONNECTION_REFUSED style message.

Reset to the default Untangle certificates, run the following via SSH:

curl -k http://download.untangle.com/patches/generic/update_cert.sh | dash
bash

Thanks for reading. Please like or share if you found this useful.

Karl Nyen

Writing about virtualization, home lab, cloud, storage and gaming on vSkilled, started in 2014.

Keep exploring

Laptop displaying code on a bright desk with an external monitor

General

Website Refresh! v2.0

The vSkilled blog website has had some major improvements and is now officially launched as version 2.0! The previous design had been in use since late 2014.

2 comments
Red padlock standing on a backlit computer keyboard

General

vSkilled Crypto - Now SSL Encrypted!

vSkilled is now fully SSL encrypted and including HTTP Strict Transport Security (HSTS). Since vSkilled is a technical IT blog, one would expect to think that…