Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

elsonwx/https_website_easy_install

Repository files navigation

https_website_easy_install

one command to generate https website on Nginx.All you need to do is input your domain names and set your web directory according the terminal prompt.

Prerequisites

  • Port 80 and port 443 have been allowed in your server's firewall rule.

Usage

  • Step 1: install Nginx on Linux

    • Ubuntu/Debian

      sudo apt-get update && sudo apt-get -y install nginx
    • Centos/Redhat

      sudo yum -y update && sudo yum -y install nginx
  • Step 2: download this script

    wget https://git.io/vHQLm -O https_website_easy_install.bash
  • Step 3: generate https website on your linux server

    sudo bash https_website_easy_install.bash

Notes

  • This script will set a cron task to update the certificate on the 01:01 am of the random day of every month,so you do not have to worry about the free certificate would be expired.

  • If you just want to generate a http website,you can download the http_website_easy_install.bash instead.

    wget https://git.io/vQfud -O http_website_easy_install.bash
  • Some cloud platform's loading balance service has a key length limit,e.g. Google Cloud loading balance only support RSA-2048.So if you want to deploy the ssl certificate on the loading balance.You can modify the key length before running this script.

    sed -i 's/4096/2048/g' https_website_easy_install.bash
  • If you want to use chinese domain,you need to convert chinese domain to punycode,then when you are asking to input the domain name by this script, just input the punycode.e.g.https://王祥.我爱你,the punycode is xn--qbyu8j.xn--6qq986b3xl

Issues

Screenshot

screenshot

Inspired

Let's Encrypt

diafygi/acme-tiny

About

one command to generate https website on nginx

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

AltStyle によって変換されたページ (->オリジナル) /