Skip to content
This repository has been archived by the owner on May 24, 2021. It is now read-only.

HTTPS How to

Raphaël Doursenaud edited this page Aug 2, 2016 · 2 revisions

Installing a certificate (The proper way)

Due to popular demand, here are the steps to use DoliWoo without paying for a certificate:

If your servers hosts both Dolibarr and WooCommerce (which is not recommended), it's better to have a fully qualified domain name to point to. Just edit your /etc/hosts file and add something like:

127.0.0.1 dolibarr.localhost.localdomain # IPv4
::1       dolibarr.localhost.localdomain # IPv6

See Wikipedia for more informations.

Next, you have to obtain and install a certificate on the Dolibarr webserver.

These days, you can use Let's Encrypt which greatly simplifies the process.

The alternative is to use a self-signed certificate and add it to your server's trust store. This won't be possible if you're using a shared hosting.

Check the manual of your webserver software or your hosting provider for the required steps to install the certificate.

Disabling certificate validation

If you're really desperate about using a certificate that's not trusted, you'll have to modify the code. Some pointers are available at stackoverflow

Bypassing HTTPS entirely (Don't do that! You have been warned!)

You will have to know what you are doing. We won't help you. You're on your own. Please stop asking.