Browse Source

updated sslcerts script to function on ubuntu 20.04

master
James McDermott 11 months ago
parent
commit
4c7a3f5679
1 changed files with 4 additions and 6 deletions
  1. +4
    -6
      admin-scripts/sslcerts

+ 4
- 6
admin-scripts/sslcerts View File

@@ -1,16 +1,14 @@
# Generate self signed ssl certs using letsencrypt
# install using `git clone https://github.com/letsencrypt/letsencrypt /opt/letsencrypt`
# please make sure it's in `/opt/letsencrypt`
# install using `apt -y install certbot`

# give name of site you want to generate a certificate for on the commandline
NAME=$1
cd /opt/letsencrypt

# apache needs to be stopped first
service apache2 stop
systemctl stop apache2

# generate certificate for $NAME
./letsencrypt-auto certonly --standalone -d ${NAME}
certbot certonly --standalone -d ${NAME}

# restart apache web server
service apache2 restart
systemctl restart apache2

Loading…
Cancel
Save