Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - hshafi

Pages: [1]
1
Other modules / Re: zentyal webadmin
« on: June 09, 2020, 06:43:01 pm »
Thanks.

It worked. after creating new ssl certificates

2
Other modules / Re: zentyal webadmin
« on: June 08, 2020, 02:41:05 pm »
Ran these commands and check the moduls

openssl rsa -in /var/lib/zentyal/conf/ssl/ssl.pem -noout -modulus
openssl x509 -in /var/lib/zentyal/conf/ssl/ssl.pem -noout -modulus

The results were not the same

how to create new certificates and keys ? would that solve?

3
Other modules / Re: zentyal webadmin
« on: June 07, 2020, 11:30:52 pm »
when I run:
sudo lsof |grep 8443
I get
sudo: lsof: command not found

Therefore I ran
ps -ef |grep nginx
This is the response
delta     1611  1519  0 02:23 pts/1    00:00:00 grep --color=auto nginx
root      2320     1  0 Jun06 ?        00:00:00 nginx: master process /usr/sbin/nginx -g daemon on; master_process on;
www-data  2321  2320  0 Jun06 ?        00:00:00 nginx: worker process
www-data  2322  2320  0 Jun06 ?        00:00:00 nginx: worker process
www-data  2323  2320  0 Jun06 ?        00:00:00 nginx: worker process
www-data  2324  2320  0 Jun06 ?        00:00:00 nginx: worker process

when I ran
sudo /usr/sbin/nginx -c /var/lib/zentyal/conf/nginx.conf
This is the response
nginx: [emerg] SSL_CTX_use_PrivateKey_file("/var/lib/zentyal/conf/ssl/ssl.pem") failed (SSL: error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch)

So I assume something wrong with SSL or certificates!
what do you suggest?



4
Other modules / Re: zentyal webadmin
« on: June 07, 2020, 06:46:44 pm »
Below is /var/lib/zentyal/conf/nginx.conf

user www-data;
worker_processes 4;
daemon off;
pid /var/lib/zentyal/tmp/nginx.pid;

events {
    worker_connections 768;
    # multi_accept on;
}

http {

    ##
    # Basic Settings
    ##

    sendfile on;
    tcp_nopush on;
    tcp_nodelay on;
    keepalive_timeout 65;
    types_hash_max_size 2048;
    server_tokens off;
    client_max_body_size 50m;

    server_names_hash_bucket_size 64;
    server_name_in_redirect off;

    include /etc/nginx/mime.types;
    default_type application/octet-stream;

    error_log /var/log/zentyal/error.log;

    # log_format combined '$remote_addr - $remote_user  [$time_local] "$request" $status $body_bytes_sent "$http_referer" "$http_user_agent"'
    # FIXME: This log format is missing %{forensic-id}n from Apache, is needed?

    ##
    # Gzip Settings
    ##

    gzip on;
    gzip_disable "msie6";

    gzip_vary on;
    gzip_proxied any;
    gzip_comp_level 6;
    gzip_buffers 16 8k;
    gzip_http_version 1.1;
    gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;

    map $ssl_client_s_dn $ssl_client_s_dn_o {
        default           "";
        ~/O=(?<O>[^/]+) $O;
    }

    map $ssl_client_s_dn $ssl_client_s_dn_cn {
        default           "";
        ~/CN=(?<CN>[^/]+) $CN;
    }

    map $ssl_client_i_dn $ssl_client_i_dn_o {
        default           "";
        ~/O=(?<O>[^/]+) $O;
    }

    server {
        listen 8443;

        ssl on;
        ssl_certificate /var/lib/zentyal/conf/ssl/ssl.pem;
        ssl_certificate_key /var/lib/zentyal/conf/ssl/ssl.pem;

        ssl_session_timeout 5m;

        ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
        ssl_ciphers "SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!3DES:!MD5:!PSK";
        ssl_prefer_server_ciphers on;

        access_log /var/log/zentyal/access.log;

        root /usr/share/zentyal/www;

        # First attempt to serve request as file, then
        # as directory, then fall back to proxy.
        try_files $uri @proxy;

        error_page 502 /errors/502.html;
        location = /errors/502.html {
           root /usr/share/zentyal/www;
        }

        # To allow POST on static pages (needed for vncviewer in zentyal-virt)
        error_page 405 =200 $uri;

        location /data/ {


            root /usr/share/zentyal/www;
            rewrite  ^/data/(.*)$  /$1  break;
            return   403;
        }

        location /dynamic-data/ {


            root /var/lib/zentyal/dynamicwww/;
            rewrite  ^/dynamic-data/(.*)$  /$1  break;
            return   403;
        }



        include /var/lib/zentyal/conf/nginx-*.conf;

        location @proxy {
            uwsgi_pass unix:///run/zentyal-webadmin/webadmin.sock;

            uwsgi_read_timeout 180;

            uwsgi_param QUERY_STRING $query_string;
            uwsgi_param REQUEST_METHOD $request_method;
            uwsgi_param CONTENT_TYPE $content_type;
            uwsgi_param CONTENT_LENGTH $content_length;
            uwsgi_param REQUEST_URI $request_uri;
            uwsgi_param PATH_INFO $document_uri;
            uwsgi_param DOCUMENT_ROOT $document_root;
            uwsgi_param SERVER_PROTOCOL $server_protocol;
            uwsgi_param REMOTE_ADDR $remote_addr;
            uwsgi_param REMOTE_PORT $remote_port;
            uwsgi_param SERVER_ADDR $server_addr;
            uwsgi_param SERVER_PORT $server_port;
            uwsgi_param SERVER_NAME $server_name;
            uwsgi_param HTTP_X_FORWARDED_PROTO https;
        }
    }

}

5
Other modules / Re: zentyal webadmin
« on: June 04, 2020, 07:33:11 am »
No there are no errors when i run

zs webadmin start

when I check with

zs webadmin status

it says [stopped]

6
Other modules / Re: WebAdmin not starting
« on: June 02, 2020, 06:55:05 pm »
I am using zentyal 6.0

have been working fine for a very long time.
However webadmin has stopped working last week. couldnt figure out how to:
can start from terminal by:

sudo zs webadmin start

but when checked again with

sudo zs webadmin status

it says stopped.

Need help!
Modify message

7
I am using zentyal 6.0

have been working fine for a very long time.
However webadmin has stopped working last week. couldnt figure out how to:
can start from terminal by:

sudo zs webadmin start

but when checked again with

sudo zs webadmin status

it says stopped.

Need help!

8
Other modules / zentyal webadmin
« on: June 02, 2020, 01:25:51 pm »
I am using zentyal 6.0

have been working fine for a very long time.
However webadmin has stopped working last week. couldnt figure out how to:
can start from terminal by:

sudo zs webadmin start

but when checked again with

sudo zs webadmin status

it says stopped.

Need help!

Pages: [1]