業務用エアコン関連の技術情報、エラーコード、環境問題対策に関する別サイト「エアコンの安全な修理・適切なフロン回収」

OpenSUSE Tumbleweed : Web Server SSL

1.Obtain an SSL Certificate (Let's Encrypt)

1.1 advance preparation

1.Enable mod_ssl

2.Package management system Snappy installation
Since the SSL certificate issuing tool "certbot" of Let's Encrypt is recommended to be installed using "snap" after 2021, install Snapd first.

Add snappy repository.

After adding the repository, import its GPG key:

Upgrade the package cache to include the new snappy repository:

Install snapd

You will then need to reboot, logout/login, or run /etc/profile source to add /snap/bin to your PATH. In addition, enable and start both the snapd service and the snapd.apparmor service using the following command

Bring snapd version up to date

Update core package

Version Confirmation

1.2 Obtaining Certificates

# Registration of e-mail address and agreement to terms of use are required for the first time only.
# Specify an email address to receive

Success if displayed"Successfully received certificate"
# The following certificate is obtained under [/etc/letsencrypt/live/<FQDN>/] as described in the message

# cert.pem ⇒ SSL server certificate (including public key)
# chain.pem ⇒ intermediate certificate
# fullchain.pem ⇒ File containing cert.pem and chain.pem combined
# privkey.pem ⇒ private key

2. Web server SSL conversion

2.1 SSL Configuration

2.2 Redirect HTTP communications to HTTPS

To redirect all HTTP communications to HTTPS, create a new virtual_host_ssl.conf as follows

HTTPS service must be allowed if Firewalld is enabled; HTTPS uses 443/TCP.

Copied title and URL