Posted in Configuration, OpenERP, OpenERP 7.0, OpenERP Installation, Ubuntu

OpenERP 7 with SSL on Ubuntu 12.04


Lets assume that apache and required packages are installed on system.

There are some commands needs to execute to run OpenERP on SSL.

sudo apt-get install apache2
sudo a2enmod ssl proxy_http headers rewrite

Now we have created certificate and key so we have to execute these commands one by one.

sudo mkdir /etc/ssl/openerp

openssl genrsa -des3 -out oeserver.pkey 1024
openssl rsa -in oeserver.pkey -out oeserver.key
openssl req -new -key oeserver.key -out oeserver.csr

At last we signed certificate here.

openssl x509 -req -days 365 -in oeserver.csr -signkey oeserver.key -out oeserver.crt

We also created apache configuration file.

sudo vim /etc/apache2/sites-available/openerp

<VirtualHost *:443>

SSLEngine on
SSLCertificateFile /etc/ssl/openerp/oeserver.crt
SSLCertificateKeyFile /etc/ssl/openerp/oeserver.key

ProxyRequests Off

<Proxy *>
Order deny,allow
Allow from all
</Proxy *>
ProxyVia On
ProxyPass / http://127.0.0.1:8078/
<location />
ProxyPassReverse /
</location>

RequestHeader set “X-Forwarded-Proto” “https”

SetEnv proxy-nokeepalive 1
</VirtualHost>

Now enable above configuration execute below command

sudo a2ensite openerp

After above configuration, just restart OpenERP server and use this URL to test: https://127.0.0.1

Advertisements

Author:

Specialised in OpenERP/CRM Solutions, software development, Web development, E commerce solutions & other open source solutions.

15 thoughts on “OpenERP 7 with SSL on Ubuntu 12.04

    1. Hi what is the typo? I can’t really see it. Copying the script and restarting apache has hit me with a
      apache2: Syntax error on line 268 of /etc/apache2/apache2.conf: Syntax error on line 12 of /etc/apache2/sites-enabled/openerp: directive missing closing ‘>’
      Action ‘configtest’ failed.
      error. Please advice.

      Thank you.

  1. Hi, I have the same problem

    apache2: Syntax error on line 219 of /etc/apache2/apache2.conf: Syntax error on line 11 of /etc/apache2/sites-enabled/openerp.conf: directive missing closing ‘>’

    I tried removing the star, but does not work,
    What is the correct syntax?

    thank you

  2. when I try to reload the apache2

    i get the follow:
    SSLCertificateFile: file ‘/etc/ssl/openerp/oeserver.crt’ does not exist or is empty

    Where can I get this certificate?

  3. I already resolved it the previous comments.
    I have another one. =0)

    when restart the apache2 I have this error.
    AH00558: apache2: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1. Set the ‘ServerName’ directive globally to suppress this message

    what is the problem this?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s