First time here? Check out the FAQ!
1

How to use SSL Certificates with AskBot?

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

gopalraha's avatar
332
gopalraha
asked 2017-01-25 09:58:48 -0500, updated 2017-01-25 11:15:26 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

2
  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

AaronHuang's avatar
113
AaronHuang
answered 2017-01-25 20:40:51 -0500
edit flag offensive 0 remove flag delete link

Comments

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

gopalraha's avatar gopalraha (2017-01-26 14:21:42 -0500) edit
2

You're welcome.

AaronHuang's avatar AaronHuang (2017-01-26 17:40:57 -0500) edit
2

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

gopalraha's avatar gopalraha (2017-01-27 04:39:26 -0500) edit
add a comment see more comments