#!/bin/bash #################################################################################################### #### author: SlickStack ############################################################################ #### link: https://slickstack.io ################################################################### #### mirror: http://mirrors.slickstack.io/bash/ss-encrypt-acme.txt ################################# #### path: /var/www/bash/ss-encrypt-acme ######################################################## #### destination: n/a (not a boilerplate) ########################################################## #### purpose: Regenerates free self-signed OpenSSL certs and adjusts Nginx config (idempotent) ##### #### module version: OpenSSL 1.1.1x ################################################################ #### sourced by: ss core cron jobs, ss-encrypt, ss-install-nginx-config ############################ #### bash aliases: ss encrypt openssl, ss install openssl ########################################## #################################################################################################### ## SS-ENCRYPT PERFORMS BASIC NGINX CONFIG MODIFICATION REGARDLESS OF SS-INSTALL-NGINX ## ## IT WILL ALSO ATTEMPT TO REVERT TO OPENSSL IF LETS ENCRYPT CERTS ARE MISSING ## ## include SlickStack configuration ## source /var/www/ss-config ## include SlickStack functions ## source /var/www/ss-functions ## install acme.sh without altering any crontabs ## # ./acme.sh --install --nocron #################################################################################################### #### SlickStack: External References Used To Improve This Script (Thanks, Interwebz) ############### #################################################################################################### ## Ref: https://github.com/acmesh-official/acme.sh/issues/220 ## SS_EOF