무료 SSL 인증서를 설정하는 방법은 무엇입니까?

무료 SSL 인증서를 설정하는 방법은 무엇입니까?

웹사이트 호스팅 환경을 부트스트랩하는 방법에 대한 다음 지침이 있습니다.

#!/bin/bash

apt update -y
apt upgrade ufw sshguard unattended-upgrades wget curl git zip unzip tree -y
ufw --force enable
ufw allow 22,25,80,443

apt install lamp-server^ -y
a2enmod http2 deflate expires

apt install phpmyadmin php-mbstring php-gettext -y

cat <<-EOF >> "$HOME"/.profile
    set -x
    complete -r
    export web_application_root="/var/www/html"
    export -f full_apache_restart
    full_apache_restart() {
        find "$web_application_root"/* -type d -exec chmod 755 {} \+
        find "$web_application_root"/* -type f -exec chmod 644 {} \+
        chown -R www-data:www-data "$web_application_root"/
        systemctl restart apache*
    }
EOF
source "$HOME"/.profile 2>/dev/null

# Set DB credentials with PHPMyAdmin
# Set Apache virtual host
# Set SSL certificate

마지막 지침인 "SSL 인증서 설정"을 무료로 또는 비용을 지불하지 않고 수행하려면 어떻게 해야 합니까?

관련 정보