・CUPS のインストール

[root@alma]# dnf -y install cups

・CUPS の設定

[root@alma]# vi /etc/cups/cupsd.conf

#
# Configuration file for the CUPS scheduler. See "man cupsd.conf" for a
# complete description of this file.
#

# Log general information in error_log - change "warn" to "debug"
# for troubleshooting...
LogLevel warn


# Specifies the maximum size of the log files before they are rotated. The value "0" disables log rotation.
MaxLogSize 1m

# Default error policy for printers
ErrorPolicy stop-printer

# Only listen for connections from the local machine.
Listen localhost:631
※書き換え(ローカル以外も許可)
Listen 631
Listen /run/cups/cups.sock

# Show shared printers on the local network.
Browsing On
※書き換え(ネットワーク上のプリンタを検索しない)
Browsing Off
BrowseLocalProtocols dnssd

# Default authentication type, when authentication is required...
DefaultAuthType Basic

# Web interface setting...
WebInterface Yes

# Timeout after cupsd exits if idle (applied only if cupsd runs on-demand - with -l)
IdleExitTimeout 0

# Restrict access to the server...
<Location />
Order allow,deny
Allow 127.0.0.1※追記(ローカルからのアクセスを許可)
Allow 192.168.1.0/24※追記(LAN内からのアクセスを許可)
</Location>

# Restrict access to the admin pages...
<Location /admin>
Order allow,deny
Allow 127.0.0.1※追記(ローカルからのアクセスを許可)
Allow 192.168.1.0/24※追記(LAN内からのアクセスを許可)
</Location>

# Restrict access to configuration files...
<Location /admin/conf>
AuthType Default
Require user @SYSTEM
Order allow,deny
Allow 127.0.0.1※追記(ローカルからのアクセスを許可)
Allow 192.168.1.0/24※追記(LAN内からのアクセスを許可)
</Location>

≪ 以下省略 ≫

≪ 以下文末に追記 ≫
※自動生成された crt ・ key を指定

ServerCertificate /etc/cups/ssl/papa-net.com.crt
ServerKey /etc/cups/ssl/papa-net.com.key