You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
368 B

  1. # Generate self signed ssl certs using letsencrypt
  2. # install using `apt -y install certbot`
  3. # give name of site you want to generate a certificate for on the commandline
  4. NAME=$1
  5. # apache needs to be stopped first
  6. systemctl stop apache2
  7. # generate certificate for $NAME
  8. certbot certonly --standalone -d ${NAME}
  9. # restart apache web server
  10. systemctl restart apache2