Ask Your Question
1

How to use SSL Certificates with AskBot?

asked 2017-01-25 09:58:48 -0600

updated 2017-01-25 11:15:26 -0600

How to use SSL Certificates with AskBot? I have successfully deployed the Askbot with ngnix and uwsgi stack .

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
2

answered 2017-01-25 20:40:51 -0600

AaronHuang gravatar image
  1. Follow the tutorial on certbot website depend on your operation system.
    For my nginx on Ubuntu 16.04 it is:

    $ sudo apt-get install letsencrypt

    $ letsencrypt certonly --webroot -w /home/s930029/GospelForum -d ldstw.org -d www.ldstw.org

    This command will obtain a single cert for ldstw.org, www.ldstw.org.

  2. According to How To Secure Nginx with Let's Encrypt on Ubuntu 16.04

Add some code your your nginx configuration.

server {
        . . .

        location ~ /.well-known {
                allow all;
        }

        . . .
}

For my website, it is:

server {
        listen 80;
        server_name ldstw.org www.ldstw.org;
        return    301 https://$server_name$request_uri;
}
server {
        listen 443;
        server_name ldstw.org www.ldstw.org;
        ssl on;
        ssl_certificate /etc/letsencrypt/live/ldstw.org/fullchain.pem;
        ssl_certificate_key /etc/letsencrypt/live/ldstw.org/privkey.pem;
        add_header Strict-Transport-Security max-age=31536000;
        ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
        location /.well-known/acme-challenge {
        root /home/s930029/GospelForum;
        }

        location / {
        include         uwsgi_params;
        uwsgi_pass      unix:/home/s930029/GospelForum/askbot.sock;
   }
}

And make sure to use $sudo chwon s930029:www:data askbot.sock after you restart nginx

edit flag offensive delete link more

Comments

Dear @AaronHuang Thanks for kind help and support.. Greets :)

gopalraha gravatar imagegopalraha ( 2017-01-26 14:21:42 -0600 )edit
2

You're welcome.

AaronHuang gravatar imageAaronHuang ( 2017-01-26 17:40:57 -0600 )edit
2

Many Regards :) Finally I have successfully deployed the AskBot....

gopalraha gravatar imagegopalraha ( 2017-01-27 04:39:26 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2017-01-25 09:58:48 -0600

Seen: 258 times

Last updated: Jan 25