Posts

Showing posts from March, 2018

How to setup Let's Encrypt Wildcard SSL certificate for Nginx

Image
In this post i well show you how to setup Nginx to service your content using https protocol and let's encrypt new wildcard ssl certificate . If you don't know to issue wildcard ssl certificate please read this post first : https://fiftysoft.blogspot.com/2018/03/step-by-step-how-to-issue-letsencrypt.html Config Nginx to use ssl  certificate edit nginx.conf file to be like this config example : user nginx; worker_processes 1; error_log /var/log/nginx/error.log warn; pid /var/run/nginx.pid; events { worker_connections 1024; } http { include /etc/nginx/mime.types; default_type application/octet-stream; log_format main '$remote_addr - $remote_user [$time_local] "$request" ' '$status $body_bytes_sent "$http_referer" ' '"$http_user_agent" "$http_x_forwarded_for"'; access_log /var/log/nginx/access.log main; ...

Step by Step How to issue Letsencrypt wildcard certificate

Image
Install Let's Encrypt Client Before we started we should update the repo then install git : For (centos 6 & 7) yum update -y yum install git -y For (ubuntu 14&16) sudo apt-get update -y sudo apt-get install git -y Then we need to install certbot-auto client : For (CentOS 6 & 7  ubuntu 14&16) sudo git clone https://github.com/certbot/certbot cd certbot ./certbot-auto -h Request SSL Certificate After we installed the let's encrypt client now we well issue wildcard certificate for our domain : ./certbot-auto certonly --agree-tos --manual --preferred-challenges dns --server https://acme-v02.api.letsencrypt.org/directory -d examile.com -d "*.examile.com" --email your@email.com When run this script the terminal well ask you to add TXT DNS recored to your domain please follow the script its clear to what you should do. Or if you don't know how to add txt record just search in goog...